Hi..don't worry. It is not cancer. Don't Google medical conditions without your doctors consent. Google dumps related searches also and you will get scared. Once doctor does diagnosis then you can freely search and read on given diagnosis.
Now, based on pic, you have apthous ulcer major. It can solved by Anabel ct gel applied thrice daily on the ulcer for one week.
Next Steps
Drink more water, drink fruit juices