Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| GNOME | libxml2 | 2.9.10 – ≤ 2.15.4 | — |
References
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/1163 issue-tracking
- https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/503 patch
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/xmlreader.c#L4714-L4830 technical-description
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/xmlreader.c#L2201-L2238 technical-description
- VulnCheck Advisory: GNOME libxml2 2.9.10 through 2.15.4 Use-After-Free via xmlValidatePopElement third-party-advisory