CVE-2025-12863

NameCVE-2025-12863
DescriptionA flaw was found in the xmlSetTreeDoc() function of the libxml2 XML parsing library. This function is responsible for updating document pointers when XML nodes are moved between documents. Due to improper handling of namespace references, a namespace pointer may remain linked to a freed memory region when the original document is destroyed. As a result, subsequent operations that access the namespace can lead to a use-after-free condition, causing an application crash.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1120364

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libxml2 (PTS)bullseye2.9.10+dfsg-6.7+deb11u4vulnerable
bullseye (security)2.9.10+dfsg-6.7+deb11u9vulnerable
bookworm, bookworm (security)2.9.14+dfsg-1.3~deb12u4vulnerable
trixie (security), trixie2.12.7+dfsg+really2.9.14-2.1+deb13u1vulnerable
forky2.14.6+dfsg-0.1vulnerable
sid2.15.1+dfsg-0.3vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libxml2source(unstable)(unfixed)1120364

Notes

https://gitlab.gnome.org/GNOME/libxml2/-/issues/1012
https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/349

Search for package or bug name: Reporting problems