Kernel Kit / Infix / v26.10.0latest
CVE-2026-93990
8.7highexpat2.8.4 · 2.7.2 · 2.7.0in 4 of 4 releases
Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.
Reach expat · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
Expat before 2.8.5 fails to validate that a high surrogate in UTF-16 input is followed by a low surrogate, allowing malformed UTF-16 sequences to be accepted. Attackers can supply UTF-16 encoded XML containing lone high surrogates that consume the following code unit, causing Expat to pass unpaired surrogates to applications built with XML_UNICODE and to silently replace input characters in other builds.
Published 2026-09-19NVD
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
- High
- Availability
- None
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:H/VA:N/SC:N/SI:N/SA:N
References 7
- blog.hartwork.org/posts/expat-2-8-5-released/
- github.com/libexpat/libexpat
- github.com/libexpat/libexpat/commit/ff6e1d7e750bbe245178f51a47a965dc8342861a
- github.com/libexpat/libexpat/pull/1282
- github.com/libexpat/libexpat/releases/tag/R_2_8_5
- www.vulncheck.com/advisories/expat-through-2.8.4-malformed-utf-16-acceptance-via-unchecked-surrogate
- cert-portal.siemens.com/productcert/html/ssa-457936.html
Fable 5.2 · medium confidence · 2026-11-19
The build ships unpatched expat 2.8.4, and the UTF-16 tokenizer the CVE describes is compiled in with no check that a high surrogate is followed by a low surrogate. No path on a shipped device feeds attacker-supplied UTF-16 XML to it, so the verdict is case (c).
The three expat consumers in the image (dbus-daemon, avahi-daemon, and firewalld via Python pyexpat) only parse local, root-owned XML files that are either packaged or generated by confd as UTF-8. dbus-daemon, the only one started unconditionally, forces the parser encoding to UTF-8, so the UTF-16 path cannot be selected there at all. NETCONF/RESTCONF XML is handled by libyang, not expat.
Reaching the flawed code would require writing a UTF-16 encoded XML file into /etc/avahi/services/ or firewalld's configuration directory, or running a custom Python script on untrusted XML. All of these need a root shell, outside the product's management interfaces. It is not reachable from a network interface.
Evidence 12
`DEFINE_UTF16_TO_UTF8`: on a high surrogate (0xD8-0xDB) the next code unit is consumed and merged into a 4-byte UTF-8 sequence without checking it is a low surrogate (0xDC-0xDF). This is the 'silently replace input characters' behaviour for non-`XML_UNICODE` builds.
output/build/expat-2.8.4/lib/xmltok.c:674-694
`IS_INVALID_CHAR(enc, ptr, n)` is defined as `(0)` for UTF-16, so the tokenizer never rejects a `BT_LEAD4` unit that lacks a trailing surrogate.
output/build/expat-2.8.4/lib/xmltok_impl.c:47-48
The file is empty: no patches are applied to expat. `buildroot/package/expat/` holds only `Config.in`, `expat.hash` and `expat.mk`, and there is no `patches/expat` directory.
output/build/expat-2.8.4/.applied_patches_list
The newest release entry is 2.8.4 (31 August 2026); there is no 2.8.5 entry and no mention of the surrogate fix.
output/build/expat-2.8.4/Changes:19
`BR2_PACKAGE_EXPAT=y`; `.stamp_target_installed` exists in the build directory, so the library is built and installed for the target.
output/.config:2527
Only `XML_DTD`, `XML_GE` and `XML_NS` are defined. `XML_UNICODE` and `XML_MIN_SIZE` are not, so the UTF-16 encodings are compiled in and output is UTF-8 (the 'silent replacement' variant of the bug, not the unpaired-surrogate one).
output/build/expat-2.8.4/expat_config.h:129-135
The target consumers of expat are `dbus`, `avahi` (`--with-xml=expat`) and `python3` (`--with-expat=system`, with `BR2_PACKAGE_PYTHON3_PYEXPAT=y` at `output/.config:1509`).
buildroot/package/dbus/dbus.mk:25, buildroot/package/avahi/avahi.mk:121-122, buildroot/package/python3/python3.mk:115-116
`XML_ParserCreate_MM("UTF-8", ...)`: `dbus-daemon` forces UTF-8, which overrides any document encoding, so the UTF-16 tokenizer is not reachable through it.
output/build/dbus-1.14.10/bus/config-loader-expat.c:199
`dbus-daemon --system` starts in all runlevels by default. It loads libexpat but only parses packaged bus configuration, with the forced UTF-8 encoding above.
output/target/etc/finit.d/dbus.conf
`XML_ParserCreate(NULL)`: `avahi-daemon` auto-detects encoding, but it only parses local static service files under `/etc/avahi/services`, never XML from the network.
output/build/avahi-0.8/avahi-daemon/static-services.c:796
`confd` generates the avahi `.service` files (mode 0640, no encoding declaration, so UTF-8) and the firewalld XML (`encoding="utf-8"`). YANG-supplied strings cannot change the file encoding to UTF-16.
src/confd/src/services.c:189-197, src/confd/src/firewall.c:274
`firewalld` uses `xml.sax` (pyexpat) only to read its own local configuration files. A search of `src/`, `board/` and `package/` found no other Infix code that parses XML with expat or Python's `xml` modules.
output/build/firewalld-2.3.1/src/firewall/core/io/io_object.py:11
Version and patches
Affected range per NVD is expat before 2.8.5, fixed in 2.8.5 (upstream commit ff6e1d7e750bbe245178f51a47a965dc8342861a, PR #1282). This build is pristine 2.8.4 (buildroot/package/expat/expat.mk sets EXPAT_VERSION = 2.8.4), with no patches applied and no IGNORE_CVES entry.
The upstream commit and advisory could not be fetched in this read-only review. Presence of the flaw was judged from the source, which matches the CVE description.
Recommendation
Document as not exposed in the default product; no emergency backport is needed.
Bump expat to 2.8.5 at the next regular Buildroot update. The change is low-risk, and 2.8.4's own Changes file warns of other unfixed issues.
Re-evaluate if any future component starts parsing externally supplied XML with expat or Python's xml.* modules.
Open questions
output/target in this tree contains no shared libraries (no libexpat.so*), so linkage of other binaries against expat could not be checked directly. The consumer list comes from Buildroot dependency metadata (dbus, avahi, python3) and may miss a package that links expat opportunistically.
Operator-installed containers (podman) or custom Python scripts could parse untrusted XML with pyexpat; that is outside the product's own configuration.
The exact hunks of the upstream fix were not compared, because there was no network access.
Members of Kernel Kit decide. Sign in if you are one.