بسم الله الرحمن الرحيم
الجواب حامداومصليا
When breaking fast intentionally one is liable to do Qadha of the fast and Kaffara.
NB. Kaffara is to fast for 60 continuous days per fast broken. If due to illness, old age or infirmity you are unable to fast for 60 consecutive days, then you may give a monetary amount as Kaffarah. For each fast broken, you are obliged to pay the equivalent of 2 meals for 60 people.
In the classical books of Fiqh it is mentioned that applying oil into the ear breaks the fast and water doesn't.
According to contemporary scholars like Mufti Rafi' says putting oil or medicine into the ear would not break the fast. He has advised that the views of an expert doctor should be taken, as there are no certainty with regards to the ear having a passage through the throat.
The fast will break when ejaculation has happened after masturbation. Only a Qadha is required.
Any other Haram actions like intermingling with the opposite sex, swearing, hurting someone etc, would not invalidate the fast but one must make Tawba and Istighfar.وان جامع في رمضان الخ أو أكل وشرب غذاءاأودواء عمدا الخ قضى وكفر الخ
(الدرالمختارمع ردالمحتار ج.2 ص.147-149,سعيد)
وأما الأذن فلان الدواء أوالماء أوالدهن ونحوهالاتصل بالأقطار فيها الى الحلق اذا كانت طلبة الأذن سليمة غير مخروقة لأن فتحة الأذن ليست بنافذة الى الحلق لامباشرة ولابواسطة قناة أوجوف أخر الااذاكانت الطلبة مخروقة
(المقالات الفقهية, ضابط مفطرات الصوم في المذاهب الأربعة ص. 110,114,143)
كذا الاستمناء بالكف أي في كونه لايفسد لكن هذا اذا لم ينزل أمااذا أنزل فعليه القضاء كما سيصرح به وهوالمختار
(الدرالمختارمع ردالمحتار ج.2 ص.136 ,سعيد)
And Allah knows best
7 ٍRabi'ul Thaniya 1441/ 5 December 2019