Description
GNOME libxml2 2.9.10 through 2.15.4 contains a use-after-free vulnerability that allows attackers to trigger stale DTD validation states after xmlTextReaderCurrentDoc documents are freed. Attackers can supply an XML document ending with an error inside an element, causing xmlTextReaderClose to read freed element declarations, leading to crashes and possible invalid frees.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| GNOME | libxml2 | 2.9.10 – ≤ 2.15.4 | — |
References
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/1208 issue-tracking
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/xmlreader.c#L3885-L3907 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 in xmlValidatePopElement third-party-advisory