Stuntman? Jamie Foxx don't need no stinking stuntman -- he sprung into action and saved a driver from an overturned, burning car ... TMZ has learned.

The wreck happened at 8:30 PM on Monday -- a single vehicle appears to have skidded on wet roads, hit a ditch and flipped upside down. It ended up in front of Jamie's gate in normally sleepy Hidden Valley ... northeast of L.A.

Witnesses tell us Foxx told CHP officers he heard the accident, ran to the scene and saw the driver buckled into his seat. Fearing the burning car would explode ... Jamie told cops he unbuckled the man and dragged him about 30 feet away from the accident.