Nissan has issued a sweeping recall to fix many of its most popular models after discovering a back-up camera defect, including in its two best sellers, the Rogue SUV and Altima sedan.

The Japanese automaker, which sells the Nissan and Infiniti brands, is recalling about 1.23 million vehicles in the U.S.

The company acknowledged in a letter to the National Highway Traffic Safety Administration that the affected vehicles are not in compliance with federal regulations due to the defect.

"The back-up camera and display settings can be adjusted such that the rear view image is no longer visible and the system will retain that setting the next time the vehicle is placed in reverse," according to NHTSA documentation.

The recall affects certain versions of the: 2018-2019 Nissan Altima, Frontier, Kicks, Leaf, Maxima, Murano, NV, NV200, Pathfinder, Rogue, Rogue Sport, Sentra, Titan, Versa Note and Versa Sedan; the 2018-19 Infiniti Q50, Q60, QX30 and QX80; and the 2019 Nissan GT-R, Nissan Taxi and Infiniti QX50, QX60, Q70 and Q70L.

Executive turmoil:Nissan CEO Hiroto Saikawa resigns as chaos continues at Nissan after Carlos Ghosn scandal

The recall is expected to start Oct. 21. Nissan will notify vehicle owners, and dealers will fix the vehicles for free by installing a software upgrade.

Follow USA TODAY reporter Nathan Bomey on Twitter @NathanBomey.