The front seat belts in the recalled vehicles could fail in a crash.

Getty Images

Close to 978,000 cars are being recalled by Hyundai in the U.S. because the front seat belts could come free in a crash and fail.

The recall covers Sonata midsize sedans from the 2011 through 2014 model years, and the Sonata hybrid from 2011 through 2015.

According to Consumer Affairs, Hyundai says "that a fastener for a seat belt anchor may not have been fully latched during assembly. If that happens the belts can detach."

Owners will be notified starting April 7. Dealers will inspect the seat belt anchor system and repair it if needed.