Bug 2584444 (CVE-2026-137074)

Summary: CVE-2026-137074 libxml2: libxml2: Denial of Service via null pointer dereference in xmlTextReaderConstEncoding
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: akhatavk, aos-team-art-private, asdas, dpaolell, jdelft, jupierce, lgarciaa, mbiarnes, ppalepu, ppostler, prdhamdh, rhel-process-autobot, sghai, sidsharm, suppawar, vlaad, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in libxml2. This vulnerability allows an attacker to cause a Denial of Service (DoS) by crashing the affected application. The issue occurs due to a null pointer dereference when an application reuses an existing XML reader to traverse a document and subsequently checks the document's encoding. By triggering this sequence of parsing operations, an attacker can cause an invalid memory read that crashes the service.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-25 19:41:29 UTC
GNOME libxml2 2.12.6 through 2.15.4 contains a NULL pointer dereference vulnerability in xmlTextReaderConstEncoding() after a reader is reset with xmlReaderNewWalker(). Because xmlCtxtReset() leaves ctxt->input NULL, querying the document encoding makes xmlGetActualEncoding() read ctxt->input->flags without a check, crashing the application and causing denial of service.

Comment 1 Yadnyawalk Tale 2026-11-26 07:49:53 UTC
Hybrid Platforms BU assessment for CVE-2026-137074 (libxml2 NULL pointer dereference in xmlTextReaderConstEncoding):

Upstream: GNOME/libxml2#1212 (reported 2026-11-25, no fix released yet). The vulnerable path — xmlTextReaderConstEncoding() calling xmlGetActualEncoding() which dereferences ctxt->input after xmlReaderNewWalker() left the context without input — was introduced in libxml2 2.12.6 (per vulncheck introduction analysis; verified that v2.9.13 and v2.12.5 read doc->encoding instead and contain no such dereference).

- hummingbird-1: AFFECTED/DELEGATED — ships libxml2-2.15.4-1.2.hum1 (in range). Tracker HUM-13758.
- openshift-4/5 (all 16 RHCOS affects): NOTAFFECTED (Vulnerable Code not Present) — RHCOS 8 ships libxml2 2.9.7-13.el8_6.24, RHCOS 9 ships 2.9.13-*.el9, RHCOS 10 ships 2.12.5-10.el10_2.4; all predate the 2.12.6 introduction of the vulnerable code path. Verified in v2.9.13/v2.12.5 source: xmlTextReaderConstEncoding() returns doc->encoding and never dereferences ctxt->input.

SBOM evidence (newcli, 2026-11-26):
$ newcli libxml2 --include_module openshift-4 -j / --include_module openshift-5 -j / --include_module hummingbird-1 -j
hummingbird-1: libxml2-2.15.4-1.2.hum1
openshift-4.12.z: rhcos-412.86.202611041725-0 libxml2-2.9.7-13.el8_6.24
openshift-4.13.z-4.22 / 5.0 / 5.1 (RHCOS 9): libxml2 2.9.13-*.el9 variants
openshift-5.0 (RHCOS 10): rhcos-5.0.10.2.202611022203-0 libxml2-2.12.5-10.el10_2.4