That's 25 gallons, many tubs hold 42 gallons before overflow.
Tubs have an overflow outlet so if this is not plugged and working no matter how much water you put into it, it should not flood.
I don't think so that's only 25 gallons..
How big is the tub and is there anything/anyone in it?
That would be a small bathtub