Kernel Kit / Infix / v26.10.0latest
CVE-2026-115506
8.7highexpat2.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 denial of service vulnerability because billion laughs protection in accountingDiffTolerated() in xmlparse.c detects entity amplification too late. Attackers can supply a moderately sized XML document with a large DTD and nested entity expansions to consume tens of seconds of CPU per parse.
Published 2026-10-22NVD
CVSS 4.0Network · no privileges · no user interaction
How it is reached
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- 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:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Fable 5.1 · medium confidence · 2026-11-05
expat 2.8.4 in this build is unpatched (empty .applied_patches_list, no Buildroot patches) and its own Changes file flags upstream issue #1160 — the CVE's reference — as an unfixed security issue; accountingDiffTolerated() in lib/xmlparse.c:8780 is the pre-fix implementation and XML_DTD/XML_GE are compiled in, so the vulnerable billion-laughs accounting path is in the image.
libexpat is installed on target and linked by dbus-daemon (runs by default), avahi-daemon (enabled via YANG infix-services:mdns/enabled) and python3 pyexpat (used by firewalld, enabled via infix-firewall).
However every expat consumer on the device parses only local, confd-generated or shipped configuration XML; the NETCONF/RESTCONF stack (libyang/libnetconf2/netopeer2/rousette) does not use expat, and operator-supplied strings that confd embeds in avahi/firewalld XML are either escaped (services.c xml_escape) or constrained by YANG patterns forbidding '<', '>' and '&'. Feeding a crafted XML document to expat therefore requires writing files into /etc/dbus-1, /etc/avahi/services or /etc/firewalld+ from a root shell, i.e. stepping outside the product.
Evidence 11
No patches applied to expat 2.8.4; vanilla upstream source
output/build/expat-2.8.4/.applied_patches_list (empty); buildroot/package/expat/ (only Config.in, expat.hash, expat.mk)
Release 2.8.4 banner states 'Expat has UNFIXED SECURITY ISSUES', pointing at github issue #1160, the issue referenced by this CVE
output/build/expat-2.8.4/Changes:9-10 and :19
Pre-fix accounting logic: tolerance decided only by countBytesOutput vs activationThresholdBytes and amplification vs maximumAmplificationFactor, with no earlier DTD/entity-expansion cut-off
output/build/expat-2.8.4/lib/xmlparse.c:8780-8832 accountingDiffTolerated()
#define XML_DTD 1, #define XML_GE 1 — DTD/general-entity processing (the amplified path) is compiled in
output/build/expat-2.8.4/expat_config.h:129,132
BR2_PACKAGE_EXPAT=y and BR2_PACKAGE_PYTHON3_PYEXPAT=y; expat is in the target image (output/build/expat-2.8.4/.stamp_target_installed present)
output/.config:2488, :1461
Target consumers that link expat: dbus (DBUS_DEPENDENCIES = expat), avahi (--with-xml=expat), python3 (--with-expat=system)
buildroot/package/dbus/dbus.mk:25; buildroot/package/avahi/avahi.mk:121-122; buildroot/package/python3/python3.mk:115-116
dbus-daemon --system runs in the factory-default configuration; it parses only local /etc/dbus-1 configuration XML
board/common/rootfs/etc/finit.d/dbus.conf
avahi is enabled through YANG container mdns / leaf enabled; its /etc/avahi/services/*.service XML is generated by confd with xml_escape() (services.c:120-131) so operators cannot inject DTD/entity markup
src/confd/src/services.c:189-200, :445-449 and src/confd/yang/confd/infix-services.yang:104-107
firewalld (python, uses pyexpat) is enabled via infix-firewall YANG; confd writes its zone/policy XML and the only free-form string (description) is constrained by pattern '[^\p{Cc}<>&]*'
src/confd/src/firewall.c:268-275, :311, :782 and src/confd/yang/confd/infix-firewall.yang:217-221
NETCONF/RESTCONF XML handling uses libyang's own parser, not expat; no network-facing service feeds XML to expat
buildroot/package/libnetconf2/libnetconf2.mk, buildroot/package/libyang/libyang.mk, package/rousette/*.mk (grep for expat/libxml: no hits)
No Infix Python scripts on target parse XML; the only pyexpat user is the firewalld package
grep of output/target/usr/{bin,sbin,libexec,share} for xml.etree/xml.sax/pyexpat
Version and patches
NVD range 'libexpat through 2.9.0' includes 2.8.4; the tree ships vanilla 2.8.4 with no patches applied (.applied_patches_list is empty), and the shipped Changes file itself marks issue #1160 as unfixed, so the fix is not present. The exact fixed release (expected >2.9.0, upstream PR #1433) could not be confirmed from inside the tree.
Recommendation
Document as not exposed on shipped devices (no untrusted XML reaches expat; exploitation requires root-shell file writes). Pick up the upstream fix (PR #1433 / first release after 2.9.0) at the next routine Buildroot/expat bump rather than as an urgent backport.
Open questions
Could not read upstream PR #1433 or the fixed release number from inside the tree (no network); verdict on 'affected' rests on the empty patch list plus the Changes banner naming issue #1160. The artifact's output/target has binaries pruned, so linkage of dbus-daemon/avahi-daemon against libexpat.so was confirmed from .mk/config.log rather than from the ELF files. Third-party Python code an operator might run (e.g. via podman, if enabled) could parse untrusted XML with pyexpat, but that is outside the product's management interfaces.
Members of Kernel Kit decide. Sign in if you are one.