Stomach ulcers, which are also known as gastric ulcers, are painful sores in the stomach lining. Stomach ulcers are a type of peptic ulcer disease.