Libxml2: namespace use-after-free in xmlsettreedoc() function of libxml2
CVE-2025-12863 is fixed in libxml2 on 1 platform by DEBIAN-CVE-2025-12863 (version 2.15.1+dfsg-0.4), released November 7, 2025. It is not reported as exploited. Patch Radar priority: High.
A 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.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| libxml2 · Debian 14 | 2.15.1+dfsg-0.4 | DEBIAN-CVE-2025-12863 | Nov 7, 2025 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.