Are you worried this is skin cancer? Many things can cause a sore in the mouth. It's difficult to guess what caused yours without knowing what else you're dealing with, if anything. Your dentist might be able to offer reassurances or recommendations.