One appliance and crew from High Wycombe and one from Beaconsfield attended, along with an officer.
One car had left the road and was in a ditch when they arrived.
Two men, injured, were in the care of South Central Ambulance Service.
The firefighters provided assistance to Thames Valley Police and made the cars safe. They used an environmental pack.