Kernel Kit / Infix / v26.10.0latest
CVE-2026-117610
8.2highexpat2.8.4 · 2.7.2 · 2.7.0in 4 of 4 releases
Reach expat · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
libexpat through 2.9.0 contains a NULL pointer dereference vulnerability in externalEntityInitProcessor2() in lib/xmlparse.c that mishandles the XML_TOK_NONE token from empty input. Attackers who control stream chunking can force an empty non-final first parse on an external entity subparser, causing a later parse to crash the application.
Published 2026-10-28NVD
CVSS 4.0Network · no privileges · no user interaction
How it is reached
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- Present
- Privileges required
- None
- User interaction
- None
What it costs
- Confidentiality
- None
- Integrity
- None
- Availability
- High
What it costs other systems
- Confidentiality
- None
- Integrity
- None
- Availability
- None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
References 5
- github.com/libexpat/libexpat
- github.com/libexpat/libexpat/blob/a76b1174c1ea52abb639a4c69d52b630a8a106a2/expat/lib/xmlparse.c#L3468-L3510
- github.com/libexpat/libexpat/commit/7b0d50e4b1d16fafd55876260701e04279a7489d
- github.com/libexpat/libexpat/pull/1444
- www.vulncheck.com/advisories/libexpat-through-2.9.0-null-pointer-dereference-via-external-entity-subparser
Fable 5.1 · high confidence · 2026-11-05
The build ships unpatched libexpat 2.8.4 (no Buildroot patches, no backport): externalEntityInitProcessor2() in output/build/expat-2.8.4/lib/xmlparse.c has no XML_TOK_NONE case, which is the defect the upstream fix (commit 7b0d50e4, PR #1444, post-2.9.0) adds.
The vulnerable function is only reached through an external-entity subparser, which exists only when an application installs an XML_ExternalEntityRefHandler and calls XML_ExternalEntityParserCreate, and the attacker must also control how that subparser is fed.
On the device libexpat is linked into dbus-daemon and avahi-daemon (both run by default) and python3's pyexpat, but none of these create an external-entity subparser: dbus and avahi set only element/character-data handlers and parse local config files; Python's xml.sax expatreader has feature_external_ges=0 by default and returns before ExternalEntityParserCreate, and the only Python XML user (firewalld) parses confd-generated local files. NETCONF/RESTCONF (libyang/sysrepo/netopeer2/nginx) do not link expat.
Reaching the affected path requires a root shell and a custom program that links libexpat with an external-entity handler; it is not reachable from any network interface or management interface.
Evidence 10
EXPAT_VERSION = 2.8.4; no patches in package dir and output/build/expat-2.8.4/.applied_patches_list is empty
buildroot/package/expat/expat.mk:7
switch on XmlContentTok result handles only XML_TOK_BOM/PARTIAL/PARTIAL_CHAR, no XML_TOK_NONE case: the unfixed code the CVE/fix commit describes
output/build/expat-2.8.4/lib/xmlparse.c:3196-3238 (externalEntityInitProcessor2)
XML_MAJOR/MINOR/MICRO = 2.8.4, inside the affected range (through 2.9.0)
output/build/expat-2.8.4/lib/expat.h:1097-1099
BR2_PACKAGE_EXPAT=y pulled in by dbus, python3 (PYEXPAT) and avahi (daemon enabled)
output/.config:2527, :1226, :1486, :3139-3144
dbus-daemon uses XML_ParserCreate_MM with only element and character-data handlers; no ExternalEntityRefHandler, so no subparser is ever created; parses local bus config files
output/build/dbus-1.14.10/bus/config-loader-expat.c:199-238
avahi-daemon sets only element/cdata handlers, no ExternalEntityRefHandler; feeds XML_ParseBuffer from local /etc/avahi/services files
output/build/avahi-0.8/avahi-daemon/static-services.c:796-838
dbus-daemon and avahi-daemon run in factory default, so libexpat is loaded by default, but only on the non-vulnerable (no subparser) path
board/common/rootfs/etc/finit.d/dbus.conf; src/confd/share/factory.d/10-infix-services.json (mdns enabled:true)
Python SAX reader defaults _external_ges=0 and returns from external_entity_ref before ExternalEntityParserCreate; no subparser by default
output/build/python3-3.12.14/Lib/xml/sax/expatreader.py:92,414-424
only shipped Python XML user is firewalld via xml.sax, parsing files confd writes to /etc/firewalld; no feature_external_ges enabled anywhere in firewalld
output/build/firewalld-2.3.1/src/firewall/core/io/io_object.py:11; src/confd/src/firewall.c:22-24,796
only avahi, dbus, dbus-glib and python3 link libexpat; libyang/sysrepo/netopeer2/nginx (NETCONF/RESTCONF) do not
grep -lexpat over output/build/*/Makefile|build.ninja|CMakeCache.txt
Version and patches
Affected range per NVD/upstream: libexpat through 2.9.0; fix in upstream commit 7b0d50e4 (PR #1444), to land in the release after 2.9.0. This build: 2.8.4 vanilla, no Buildroot patches applied (.applied_patches_list empty), no backport of the XML_TOK_NONE handling present in externalEntityInitProcessor2().
Recommendation
Document as not exposed on shipped devices; no urgent action. Pick up the fixed libexpat release in the next routine Buildroot bump rather than backporting now. Re-evaluate if a future component installs an XML_ExternalEntityRefHandler on network-sourced XML (e.g. Python code enabling feature_external_ges).
Open questions
The cached output/target tree contains no shared libraries (pruned), so presence of libexpat.so in the final image was inferred from the build objects (output/build/expat-2.8.4/lib/.libs/*.o) and the -lexpat link flags in the avahi/dbus/python3 build files rather than from the rootfs listing itself.
Members of Kernel Kit decide. Sign in if you are one.