You could buy them from someone who has them. There's a price at which anyone will sell. The problem then becomes the price you'd have to charge for the cars is too much, but someone who is willing to pay that price could still buy them.
Which is why new car prices are up substantially.
If prices were set by law, this couldn't happen (legally). So then the shortages are real.