Description
GNOME libxml2 through 2.15.4 contains a double free vulnerability in xmlReaderNewWalker() that frees reader->input again after xmlTextReaderClose() already released it. Applications reusing a closed xmlTextReader with xmlReaderNewWalker() can crash, and groomed heap memory can control the close callback for possible code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| GNOME | libxml2 | ≤ 2.15.4 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libxml2 | No fix yet | — |
| Debian 13 | libxml2 | No fix yet | — |
| Debian 12 | libxml2 | No fix yet | — |
References
- https://gitlab.gnome.org/GNOME/libxml2/-/issues/1212 issue-tracking
- https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.15.4/xmlreader.c#L5179 technical-description
- VulnCheck Advisory: GNOME libxml2 through 2.15.4 Double Free in xmlReaderNewWalker() third-party-advisory