Hello,
visit a dentist and get it checked. if it is an ulcer, then you can apply baking soda over it or do baking soda in water mouth rinses. This will help to heal your ulcers. If they still persist, you need to consult a physician and get your
vitamin B levels checked. If required take supplements for it.