A condition in which painful sores or ulcers develop in the lining of the stomach, lower esophagus, or small intestine.