A canker sore is a little ulcer in the protective lining of your mouth. Unlike cold sores, which are caused by the herpes virus, canker sores are not the result of viral or bacterial infections and are not contagious. They're auto-immune, which means that your body is basically attacking itself.