Tesla is recalling nearly 1.1 million cars in the US because the windows might close too fast and pinch people's fingers.
Documents produced by American regulators show the windows may not react correctly after detecting an obstruction.
The National Highway Traffic Safety Administration says it is a safety-standards violation.
Tesla says a software update will fix the problem.
The world's largest electric-vehicle manufacturer has had repeated run-ins with federal safety regulators, whom chief executive Elon Musk calls "the fun police".
Previous recalls have been due to:
Tesla chief executive Elon Musk criticised the use of the term "recall", tweeting: "The terminology is outdated & inaccurate. This is a tiny over-the-air software update. To the best of our knowledge, there have been no injuries."
The latest recall covers all four Tesla models, specifically 2017-22 Model 3 sedans and some 2020-21 Model Y SUVs (sports utility vehicles), Model S sedans and Model X SUVs.
Tesla discovered the problem with the automatic windows during production testing in August.
Owners will be notified by letter, from15 November.
Company documents indicate vehicles made after 13 September already have the updated software needed to remedy the issue.
Tesla said it was not aware of any warranty claims, crashes, injuries, or deaths related to the recall.