Don't think that it is a small problem. It may be very serious. Consult your doctor.
It may be due to bacterial, viral or fungal infection.
You may try add some salt to warm boiling water and rinse your mouth.
Keep your mouth clean and avoid fried or spicy food
If it does not work, find your doctor immediately.