Damage to the lining of the gullet (oesophagus), stomach or duodenum caused by exposure to the enzymes in gastric juice. Having a peptic ulcer may increase the risk of stomach cancer.