This is seemingly one of those misconceptions that doesn't go away.
FOM own the commercial rights to the FIA Formula One World Championship. If you want to depict the championship and Formula 1 Racing, you need a license from them.
The teams however own the rights to their own cars and can license them accordingly, but they can only be driven individually. Either as the only car on track or if they race, against identical clones of the same car or possibly cars from other series. If they were to race against any other F1 cars however it would be considered Formula 1 racing, and you can't do that without the FOM license. This has allowed several cars to appear in games. Off the top of my head:
Marussia MR02 in rFactor2
Williams FW31 in iRacing
Ferrari's in GT5
Ferrari in their own Ferrari Virtual Academy
McLaren MP4-25,26,27,28,29 in SimRaceWay
Lotus E23 in Forza 5/6
As I say it seems to be a misconception that only Ferrari control the rights to their own cars. Clearly they all do, right down to the newest team on the grid, Marussia. With historical cars things get a little different, and I'm not totally 100% sure how it works. Pre-1981 I believe is the cut off where things change, as that is when commercial rights were decided between FOCA and FISA.