Hi Muskan. It could be a bacterial and yeast infection. A regular ear cleansing plus keeping paws clean would avoid such infections. I would recommend you to speak to a vet in detail either by booking an online or home consultation on kuddle to get a correct treatment.