Kernel Kit / Infix / v26.10.0latest
CVE-2026-118370
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 signed integer overflow vulnerability in storeAtts() in lib/xmlparse.c that allows attackers to trigger out-of-bounds writes via oversized attribute counts. Attackers can supply a multi-gigabyte document with a start tag carrying over 2^30 attributes to overflow attIndex and nPrefixes, crashing applications or corrupting heap memory.
Published 2026-10-28NVD
CVSS 4.0Network · no privileges · no user interaction
How it is reached
- Attack vector
- Network
- Attack complexity
- High
- 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:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
References 6
- github.com/libexpat/libexpat
- github.com/libexpat/libexpat/blob/a76b1174c1ea52abb639a4c69d52b630a8a106a2/expat/lib/xmlparse.c#L4138-L4140
- github.com/libexpat/libexpat/commit/1bac53c4fc460a03cd9860f39501c7979f6750ae
- github.com/libexpat/libexpat/commit/621cb2c78b253ee023a86bc91d6ddb048481c04c
- github.com/libexpat/libexpat/pull/1450
- www.vulncheck.com/advisories/libexpat-through-2.9.0-integer-overflow-in-storeatts-via-attindex-and-nprefixes
Fable 5.1 · medium confidence · 2026-11-12
The expat 2.8.4 source in this tree is unpatched: storeAtts() in output/build/expat-2.8.4/lib/xmlparse.c still uses int attIndex / int nPrefixes (lines 3866, 3868) and no patches are applied, so the build contains the vulnerable code. libexpat is a target package and is linked into dbus-daemon (started at boot by board/common/rootfs/etc/finit.d/dbus.conf) and avahi-daemon (enabled in the factory config via infix-services:mdns), so the parser does execute on a shipped device.
However, the only XML these daemons parse is root-owned local configuration: /etc/dbus-1/*.conf and /etc/avahi/services/*.service, the latter generated by confd itself (src/confd/src/services.c). No network-facing path feeds attacker-controlled XML into expat (NETCONF/RESTCONF use libyang's own XML parser; mDNS packets are not XML; no Infix Python code uses xml/pyexpat). Triggering the overflow requires placing a multi-gigabyte crafted document with more than 2^30 attributes where one of these daemons reads it, which needs a root shell outside the product's management interfaces. Not reachable from a network interface.
Evidence 12
`int attIndex = 0;` in storeAtts() – vulnerable signed counter, fix (size_t / overflow checks) not present
output/build/expat-2.8.4/lib/xmlparse.c:3866
`int nPrefixes = 0;` – second vulnerable signed counter named in the CVE
output/build/expat-2.8.4/lib/xmlparse.c:3868
Only guard is `n > (size_t)INT_MAX`; attIndex is incremented twice per attribute (lines 3991, 4036/4041) so it can still overflow for >2^30 attributes
output/build/expat-2.8.4/lib/xmlparse.c:3944
Empty – no Buildroot or Infix patches applied to expat
output/build/expat-2.8.4/.applied_patches_list
EXPAT_VERSION = 2.8.4, no patches in package dir, core library built (only docbook/examples/tests/xmlwf disabled)
buildroot/package/expat/expat.mk
BR2_PACKAGE_EXPAT=y – target package selected
output/.config:2527
dbus depends on expat; output/.config:1226 BR2_PACKAGE_DBUS=y
buildroot/package/dbus/dbus.mk:25
avahi depends on expat with --with-xml=expat; output/.config:3141 BR2_PACKAGE_AVAHI_DAEMON=y
buildroot/package/avahi/avahi.mk:121
dbus-daemon --system started unconditionally at boot; parses local bus config via output/build/dbus-1.14.10/bus/config-loader-expat.c:199
board/common/rootfs/etc/finit.d/dbus.conf:2
`infix-services:mdns enabled: true` in factory defaults; src/confd/src/services.c:445 svc_enable("avahi")
src/confd/share/factory.d/10-infix-services.json
avahi-daemon only uses expat to parse /etc/avahi/services/*.service, files written by confd (src/confd/src/services.c:189-259) as root
output/build/avahi-0.8/avahi-daemon/static-services.c:796
BR2_PACKAGE_PYTHON3_PYEXPAT=y – pyexpat module built, but no Infix script under board/common/rootfs or src/ imports xml/pyexpat (rg search empty)
output/.config:1509
Version and patches
NVD/advisory: affected through 2.9.0 (fix in libexpat commits 1bac53c4 / 621cb2c7, PR #1450, expected in the release after 2.9.0). This build: expat 2.8.4 (buildroot/package/expat/expat.mk, lib/expat.h 2.8.4), inside the affected range; output/build/expat-2.8.4/.applied_patches_list is empty and buildroot/package/expat/ contains no patches, so the fix is not backported. CPE mapping libexpat_project:libexpat:2.8.4 is correct.
Recommendation
Document as not exposed on the shipped device: the vulnerable code is present and runs in dbus-daemon and avahi-daemon, but only on trusted root-owned local XML, with no network or management-interface path to feed a crafted document. Pick up the fixed expat release (the first release after 2.9.0 containing PR #1450) at the next routine Buildroot bump rather than as an emergency backport.
Open questions
output/target in this tree is only a partial snapshot (two .so files in total), so presence of libexpat.so in the image was inferred from BR2_PACKAGE_EXPAT=y and the dbus/avahi dependencies rather than observed in the rootfs. dbus-python and dbus-glib parse D-Bus introspection XML with expat; that input comes from local system-bus peers, which still requires local process access, but was not traced exhaustively.
Members of Kernel Kit decide. Sign in if you are one.