There is a possibility that last tooth is put of the arch and due to trauma ulcer is form there. You can visit dentist dentist for confirmation. If it is functional tooth they can do some alternation and if it is due to wisdom tooth might suggest removal of tooth.