bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-118370

8.2high

expat2.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
Review Av26.10.0x86_64Not exposed✓ accepted by a member, 2026-11-12 · settles 8 of 8

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
  1. `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

  2. `int nPrefixes = 0;` – second vulnerable signed counter named in the CVE

    output/build/expat-2.8.4/lib/xmlparse.c:3868

  3. 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

  4. Empty – no Buildroot or Infix patches applied to expat

    output/build/expat-2.8.4/.applied_patches_list

  5. EXPAT_VERSION = 2.8.4, no patches in package dir, core library built (only docbook/examples/tests/xmlwf disabled)

    buildroot/package/expat/expat.mk

  6. BR2_PACKAGE_EXPAT=y – target package selected

    output/.config:2527

  7. dbus depends on expat; output/.config:1226 BR2_PACKAGE_DBUS=y

    buildroot/package/dbus/dbus.mk:25

  8. avahi depends on expat with --with-xml=expat; output/.config:3141 BR2_PACKAGE_AVAHI_DAEMON=y

    buildroot/package/avahi/avahi.mk:121

  9. 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

  10. `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

  11. 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

  12. 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.