Apopthos ulcers are idiopathic and self healing but frequently occur in IBD , behcets disease celiac disease ..
If ulcerated area is painful and if there is another ulcerated areas such as genital ulcers it is probably Behçet's disease. But celiac disease or crohn's diseases are also possible