One crew from Beaconsfield and two from High Wycombe attended.
One car was well alight on the hard shoulder of the motorway when they arrived.
The firefighters used one set of breathing apparatus and one hose reel jet.
One lane of the motorway was closed while they worked at the scene.
National Highways also attended.