CVE-2026-137073: GNOME libxml2 through 2.15.4 Double Free in xmlReaderNewWalker()
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 Software
Event History
Frequently Asked Questions
What application behavior is required to trigger this issue?
An application must reuse a closed xmlTextReader by calling xmlReaderNewWalker() after xmlTextReaderClose() has already released the reader input. This is not described as affecting applications that do not follow that sequence.
Can exploitation require more than simply parsing XML?
Yes. The described impact requires the vulnerable reader-reuse path, and possible code execution further depends on groomed heap memory being able to control the close callback. The supplied vector also indicates local access, high attack complexity, and user interaction.
What is the immediate risk if the vulnerable path is reached?
The application can crash because reader->input is freed a second time. Under the stated heap-grooming conditions, the close callback may be controlled, creating a possibility of code execution.
How can teams determine whether their code is exposed?
Review uses of xmlTextReaderClose() and determine whether the same xmlTextReader is later passed to xmlReaderNewWalker(). Also identify deployments using libxml2 through version 2.15.4.