A duodenal ulcer is a raw area in the lining in the upper part of the small intestine (duodenum), where it connects to the stomach.