Hello
Oral ulcers can be due to infections or autoimmune conditions. But most of them are because of I'll fitting dentures, viral infections like herpes, behcets if recurrent. More over deficiency of
vitamin B12 and iron is also know to cause oral ulcers. Some rare causes include IBD and sprue are also there. You can consult a Gastroenterologist Or ent if you have recurrent issues