CVE-2026-137067: GNOME libxml2 2.9.10 through 2.15.4 Use-After-Free via xmlValidatePopElement
GNOME libxml2 2.9.10 through 2.15.4 contains a use-after-free vulnerability in xmlValidatePopElement because xmlCtxtReset frees the DTD without popping stale validation states. Attackers supplying an XML document ending inside an element to an application reusing a DTD-validating xmlTextReader can trigger heap reads, causing crashes and limited heap disclosure via error messages.
Affected Software
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using libxml2 versions 2.9.10 through 2.15.4 are exposed when they reuse an xmlTextReader configured for DTD validation. The vulnerable path involves resetting the parsing context while stale validation states remain.
What must an attacker provide to trigger the vulnerability?
An attacker must be able to supply an XML document to the affected application. The document must end while still inside an element, and it must be processed through a reused DTD-validating xmlTextReader.
What is the likely impact of successful exploitation?
The use-after-free can cause heap reads and application crashes. Error messages may expose limited heap data.