Hi, all. I just joined this forum to comment on this, since I work for a company that supports intellectual property research. I'm actually pitching my boss on a white paper that uses YongNuo and these cloned lenses as a case study.
First, determining the status of a patent (active/inactive) is somewhat trickier than it seems. But, based on a few analysis tools on Canon's granted lens patents, it looks like the patents for a lot of old Canon lenses are probably expired at this point. This includes the 50 f/1.8, 50 f/1.4, 35 f/2, the old 20-35... pretty much anything patented in the early 90's or before.
It looks like a lot of these patents just cover the elements, their grouping, and how they bend light. The drawings in the patents are pretty much identical to the block diagrams on Canon's site with additional details about how each element bends light, etc.. Some of the patents cover image stabilization for a particular lens. So, YN can copy this portion of the lens design without running into any IP issues.
None of the patents cover things like external design or autofocus. (There are many separate patents for various autofocus technologies, though, some of which have likely expired.) However, exterior design can be controlled through copyright (in some cases) or trademark (much more likely). For example, I'm pretty sure no one can use the exact color of red ring that Canon uses due to trademark concerns. I wouldn't be surprised if there were trademarks on some of the external designs, too. This is where YN may get into trouble, because their designs pretty clearly mimic the Canon designs and could cause market confusion. (Trademarks have an indefinite length, because it's silly for say Coca Cola to lose use of their name just because a certain length of time passed.)
There's a lot of other expired Canon lens patents out there that companies could use to make lenses. Odds are that YN chose these ones for marketability and because factories are already tooled to make these lenses for Canon, Nikon, etc. But, patent concerns shouldn't be an issue for any of these lenses. From what I can tell, they're all well expired. For example, the US patent for the 50 f/1.4 expired 18 years ago!