DETROIT -- Korean automakers Hyundai and Kia are recalling almost 1.7 million vehicles in the U.S. and Canada to fix problems with brake light switches.

The recall covers most of the automakers' model lineups from the 2007 through 2011 model years.

Hyundai Canada said about 255,000 vehicles are being recalled in Canada for the problem, while Kia Canada said just over 106,000 of its vehicles are involved in the recall.

According to the website of the U.S. National Highway Traffic Safety Administration, a faulty switch can stop the brake lights from illuminating when drivers press on the pedal.

Also, the cruise control may not turn off when a driver steps on the brake, push-to-start buttons may not work, and a feature that stops the driver from shifting out of park without a foot on the brake may fail.

"Failure to illuminate the stop lamps during braking or inability to disengage the cruise control could increase the risk of a crash," NHTSA said in the documents.

Spokesmen for Hyundai and Kia Motors Corp. said Wednesday that there haven't been any crashes or injuries due to the problem. Both pointed out that the malfunctions don't occur all the time, and they don't affect performance of the brakes.

Like many automakers, Hyundai and Kia try to use the same parts in as many cars as possible to get a better price from parts suppliers and make manufacturing simpler. But when something goes wrong, it can cause a massive recall. Both automakers are owned by the same company and use the same underpinnings for their cars and SUVs. The appearance and driving characteristics are different, however.

Hyundai models affected by the brake light switch recall include the 2007 to 2009 Accent and Tucson, the 2007 to 2010 Elantra, the 2011 Sonata, the 2007 to 2011 Santa Fe, the 2008 to 2009 Veracruz and the 2010 to 2011 Genesis Coupe. Kia models include the 2007 to 2010 Rondo and Sportage, the 2011 Optima, the 2007 to 2011 Sorento, the 2010 to 2011 Soul and the 2007 Sedona.

The recall is in addition to a 2009 recall for a similar problem with the brake light switches.

Hyundai and Kia will notify owners and dealers will replace the switches free of charge.

In addition to the problem with the stop lamp switch, Hyundai Motor Co. is recalling about 194,000 Elantra compacts from the 2011 to 2013 model years that were built in South Korea and sold in the U.S. to fix a problem with their air bags.

Hyundai Canada says all Elantras sold Canada were built in the United States and do not share the problem.

In the Elantra air bag recall, a support bracket can come loose when the side air bags are inflated and cause injuries. In one case, the bracket cut a driver's ear. NHTSA began investigating the problem last year and traced it to cars that had auto-dimming rear-view mirrors installed after arriving at U.S. ports from South Korea. Technicians installing the mirrors could dislodge the bracket, the investigation found.

In April of 2012, an Elantra owner told investigators a side air bag inflated in a crash and sliced the driver's left ear. Hyundai said it is aware of only one injury from the problem.

Dealers will install industrial adhesive strips to keep the brackets in place at no cost to the owners. Hyundai will notify owners during the second quarter of this year.

With files from The Canadian Press