If you did not know that masturbation invalidates the fast and you committed masturbation during the days of the month of Ramadan there is no Kaffara on you but Qadha of the fast of that day. If you did not know that Ghusl of Janabah is compulsory for a valid fasting you need to keep Qadha (Qaza) for every day of fasting which you are sure that you were in the state of janabat. Wassalam.
If you took an oath to do something which you know that it is wrong or you discovered later that it is wrong, then such oath itself is invalid. You don't need then to feed ten poor persons or clothe them or fast three days as expiation.
OTP entered does not match. Please enter the correct OTP!
Full Name and Password are required.
Please provide a valid Email address.
Please enter a valid email address.
Enter valid first name and last name with at least one space.
Mail sent successfully!
A validation e-mail has been sent to your e-mail address. You will need to follow the instructions in that message in order to gain full access to the site.