Diddy Kong racing? Only game with karts I remember which has a volcano area you can fall into. Crevices had these lava rivers you could ride and were spitting fire every now and then.
There were balloons rather than flags although...
Found the game myself, it was Cel Damage Overdrive, thanks