Description
libxml2 through 2.15.4 contains a heap use-after-free vulnerability that allows attackers to crash applications by triggering xmlFreeNode on a stale reader->faketext node after xmlTextReader reuse. Attackers can supply XML containing a namespace declaration to applications that read its value and reuse the reader, causing a freed document's dictionary read and process crash.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| GNOME | libxml2 | ≤ 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#L2801-L2840 technical-description
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/xmlreader.c#L4714-L4830 technical-description
- VulnCheck Advisory: libxml2 through 2.15.4 Use-After-Free in xmlFreeNode via reader->faketext third-party-advisory