Mouth ulcers cannot be passed on, because they are simply breaks/tears in the tissue. However conditions which cause ulceration may be passed on. One example would be primary herpetic gingivostomatitis this is the herpes virus passed by kissing or oral sex sometimes leading to ulceration of the gums.