These are open sores on the stomach lining or the upper portion of the small intestine. Bacteria is the most prevalent cause, but poor lifestyle habits, and long-term use of certain medications can also contribute. They're usually treated with prescription medicines that help decrease stomach acid.