Ref. No. 1274
In the name of Allah the most Gracious the most Merciful
The answer to your question is as it follows:
Yes, Masturbating nullifies the fast. One has to make qaza of the fasts during which one committed masturbation, but there is no kaffara.
And Allah knows best
Darul Ifta
Darul Uloom Waqf Deoband