Kernel Kit / Infix / v26.10.0latest
CVE-2026-77214
8.3highexpat2.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
libexpat before commit 13c5f63 contains a heap buffer over-read vulnerability in xmlparse.c. XML_ParseBuffer advances the parse buffer end with parser->m_bufferEnd += len using a caller-supplied length that is not validated against the allocated buffer size, so repeated XML_ParseBuffer calls move m_bufferEnd past the end of the heap allocation and subsequent parsing reads out of bounds. Reaching this path requires a parse buffer to already be present; otherwise XML_ParseBuffer returns XML_ERROR_NO_BUFFER. A buffer is present after a prior call to XML_GetBuffer, either directly (the common case) or indirectly through a prior XML_Parse call that allocates the buffer internally. The over-read discloses adjacent heap memory to the calling application, recovering heap pointers, libc function pointers, and code pointers sufficient to defeat ASLR and build further exploitation primitives.
Published 2026-10-07NVD
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
- High
- Integrity
- None
- Availability
- Low
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:H/VI:N/VA:L/SC:N/SI:N/SA:N
Fable 5.2 · medium confidence · 2026-11-19
The unfixed code is in this build: XML_ParseBuffer in output/build/expat-2.8.4/lib/xmlparse.c still does parser->m_bufferEnd += len with no check against the allocated buffer, and no patch is applied to expat.
The function does run in the factory-default configuration, because avahi-daemon (mDNS is enabled in the factory config) calls it when loading its service files. However, the over-read only happens when the calling program passes a len larger than the buffer it got from XML_GetBuffer. Every target caller I found bounds len to the size it requested: avahi-daemon and Python's pyexpat do so explicitly, and dbus-daemon goes through XML_Parse, which sizes the buffer itself.
Reaching the over-read would therefore need a new or modified program on the device that calls libexpat incorrectly (for example native code run from a root shell). It is not reachable from the network or through YANG, the CLI or the web UI.
This is a judgement call: read literally as "the affected function runs by default", the verdict would be EXPOSED_BY_DEFAULT. I chose NOT_EXPOSED because the out-of-bounds condition itself cannot be produced by any shipped caller I found.
Evidence 11
`parser->m_bufferEnd += len` is executed with only a `len < 0` check (line 2444) and an integer-overflow check on `m_parseEndByteIndex` (line 2473); nothing compares `len` with the allocated buffer limit. The code the CVE describes is present and unfixed.
output/build/expat-2.8.4/lib/xmlparse.c:2480-2484 (XML_ParseBuffer)
The file is empty or absent; `buildroot/package/expat/` holds only `Config.in`, `expat.hash` and `expat.mk`, and `patches/` has no `expat` directory. No patch is applied to expat.
output/build/expat-2.8.4/.applied_patches_list
The newest changelog entry is `Release 2.8.4 Mon August 31 2026`, before the CVE was published on 2026-10-07. The only `XML_ParseBuffer` fix listed is the earlier integer overflow CVE-2026-56406 in 2.8.2 (line 166).
output/build/expat-2.8.4/Changes:19
`BR2_PACKAGE_EXPAT=y`, so the library is selected for the target; `BR2_PACKAGE_PYTHON3_PYEXPAT=y` (line 1509), `BR2_PACKAGE_AVAHI_DAEMON=y` (line 3141) and `BR2_PACKAGE_DBUS=y` (line 1226) are the consumers.
output/.config:2527
`EXPAT_CONF_OPTS` only disables docbook, examples, tests and `xmlwf`. `lib/xmlparse.c` is the core library and is always compiled, so the affected function is in the target `libexpat`.
buildroot/package/expat/expat.mk:16-21
`avahi-daemon` calls `XML_GetBuffer(parser, BUFSIZE)`, then `read(fd, buffer, BUFSIZE)`, then `XML_ParseBuffer(parser, n, n == 0)`. `n` can never exceed `BUFSIZE`, so the buffer end cannot move past the allocation. The input is local files under `/etc/avahi/services`, not network data.
output/build/avahi-0.8/avahi-daemon/static-services.c:821-833
The finit service `mdns` runs `avahi-daemon -s`. It is enabled by confd from the `/infix-services:mdns` container (`src/confd/src/services.c:81`, `mdns_change` at line 425).
package/skeleton-init-finit/skeleton/etc/finit.d/available/avahi.conf:1-3
The factory configuration sets `infix-services:mdns` to `"enabled": true`, so `avahi-daemon`, and with it `XML_ParseBuffer`, runs by default.
src/confd/share/factory.d/10-infix-services.json:5-7
`pyexpat` calls `XML_GetBuffer(..., BUF_SIZE)` and passes `bytes_read` to `XML_ParseBuffer`; `readinst` rejects `len > buf_size`, so the length is bounded. Python is built with `--with-expat=system` (`buildroot/package/python3/python3.mk:116`), so it uses this libexpat.
output/build/python3-3.12.14/Modules/pyexpat.c:942-953 and readinst():895
`dbus-daemon` (started by `board/common/rootfs/etc/finit.d/dbus.conf:2-3`) uses `XML_Parse`, which allocates the buffer internally with the same `len` it then passes to `XML_ParseBuffer`.
output/build/dbus-1.14.10/bus/config-loader-expat.c:259
The only other `XML_ParseBuffer` caller found under `output/build` is a host-side Perl module, which is not in the target image.
output/build/host-libxml-parser-perl-2.47/Expat/Expat.c:408
Version and patches
The CVE gives no version range, only "before commit 13c5f63". The tree has expat 2.8.4 (released 2026-08-31, before the CVE was published), no patches are applied, and XML_ParseBuffer has no bounds check on len, so the build is affected at source level. No fixed release version could be determined from the tree; the upstream commit and advisories were not reachable from this read-only review.
Recommendation
No urgent backport is needed: no shipped caller can produce the over-read, so this is not remotely exploitable on a default or operator-configured device.
Because the weakness is still present in a library that default-running daemons use, bump expat to the first upstream release containing commit 13c5f63 at the next routine Buildroot update, or add that commit as a patch under patches/expat/. Until then, document the finding as present but not exposed, citing the bounded len at each call site.
Open questions
- –I could not read the upstream fix commit
13c5f63or the advisories (no network access), so the exact shape of the fix and the first fixed release are unconfirmed. The affected status rests on the missing bounds check in the tree's source.
- –Two shell commands were blocked by the sandbox: a
git logonbuildroot/package/expat, and a combined search of the finit and avahi directories underoutput/target. I covered the same ground with other searches, but did not see git history for the package.
- –The caller survey was a source search for
XML_ParseBufferandXML_GetBufferunderoutput/build. A text search ofoutput/targetfor the symbol returned nothing, so I could not confirm at the binary level which target executables linklibexpat. Prebuilt or container-delivered software that callsXML_ParseBufferwith an unchecked length would not have been seen.
Members of Kernel Kit decide. Sign in if you are one.