Most mouth ulcers heal within weeks. The ones that don't are the ones to worry about.
Refer on the 2-week pathway to oral surgery for unexplained oral ulceration or a mass over 3 weeks, or unexplained red or red-and-white patches. Refer unilateral head and neck pain over 4 weeks with earache but normal otoscopy, and an unexplained neck lump. Persistent oral symptoms over 6 weeks that can't be called benign also need referral. Suspicion is higher over 40, in smokers, heavy drinkers and people who chew tobacco or betel nut.