bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-102633

8.2high

expat2.8.4 · 2.7.2in 3 of 4 releases

Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.

Reach expat · 6 builds in 3 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

libexpat versions 2.7.2 through 2.8.5 contain an integer overflow vulnerability in expat_realloc() function on 32-bit platforms when computing allocation sizes. Attackers supplying malicious XML to applications parsing with vulnerable libexpat can cause heap buffer overflow, memory corruption, or denial of service.

Published 2026-09-29NVD

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.0aarch64_minimalNot affected✓ accepted by a member, 2026-11-20 · settles 6 of 6

Fable 5.2 · high confidence · 2026-11-19

The unfixed expat_realloc() is in this build (version 2.8.4, no patches applied), but the CVE is limited to 32-bit platforms and this image is 64-bit aarch64, so the overflow condition is not compiled into the product.

The flaw depends on size_t being narrower than the 64-bit XmlBigCount used by the allocation accounting check. On this target both are 64 bits, so sizeof(size_t) + EXPAT_MALLOC_PADDING + size cannot wrap for any allocation size a parser can reach.

libexpat.so.1.12.4 is installed in the target image and has users there (dbus, avahi, python3 pyexpat). I did not assess reachability, because the build is not affected.

Evidence 9
  1. `BR2_ARCH_IS_64=y`; with `BR2_aarch64=y` at line 30, the target is 64-bit, not the 32-bit platform the CVE requires.

    output/.config:24

  2. `SIZEOF_VOID_P='8'`; expat was configured for host `aarch64-buildroot-linux-gnu` (line 1403), so `size_t` is 64 bits.

    output/build/expat-2.8.4/config.log:1336

  3. `expat_realloc()` is still the unfixed code: it relies on `expat_heap_increase_tolerable()` for overflow detection (only an `assert`) before computing `sizeof(size_t) + EXPAT_MALLOC_PADDING + size` for `realloc_fcn`.

    output/build/expat-2.8.4/lib/xmlparse.c:1031-1037

  4. `XmlBigCount` is `unsigned long long` (64-bit). The accounting check at lines 880-883 works in that type, so it misses a `size_t` wrap only where `size_t` is 32 bits; on this build the widths are equal.

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

  5. `XML_GE 1`, so the `expat_malloc`/`expat_realloc` tracker path is compiled (`REALLOC` macro at `lib/xmlparse.c:847`). The function is present; only the 32-bit precondition is missing.

    output/build/expat-2.8.4/expat_config.h:132

  6. Empty (0 bytes): no patches are applied to expat, and there is no `patches/expat` directory. The fix is not backported.

    output/build/expat-2.8.4/.applied_patches_list

  7. `EXPAT_VERSION = 2.8.4`, inside the affected range 2.7.2 through 2.8.5; the `.mk` carries no CVE ignore entry.

    buildroot/package/expat/expat.mk:7

  8. `BR2_PACKAGE_EXPAT=y`; the package is selected for the target, alongside users `BR2_PACKAGE_DBUS=y` (1225), `BR2_PACKAGE_PYTHON3_PYEXPAT=y` (1461) and `BR2_PACKAGE_AVAHI=y` (3093).

    output/.config:2488

  9. `./usr/lib/libexpat.so.1.12.4` is installed to the target rootfs.

    output/build/expat-2.8.4/.files-list.txt:6

Version and patches

NVD's affected range is 2.7.2 through 2.8.5, on 32-bit platforms only; the fixed version is presumably 2.8.6 (upstream commit 209801d7, PR #1392), which I could not confirm from the tree. This build is 2.8.4 with no patches applied (output/build/expat-2.8.4/.applied_patches_list is empty), so the version is in range and the fix is absent from lib/xmlparse.c. The 32-bit precondition is not met: the target is aarch64 with 64-bit size_t.

Recommendation

Document as not applicable for the aarch64 image: the CVE needs a 32-bit size_t. No urgent backport is needed for this build.

Pick up the fixed expat release in the normal Buildroot update cycle. If any 32-bit Infix target (for example an arm defconfig) ships the same expat 2.8.4, triage it separately; this conclusion does not carry over, and expat is used there by network-facing or bus-facing services such as avahi and dbus.

Open questions

The upstream advisory and fix commit could not be read in this offline review, so the 32-bit restriction rests on the NVD description, corroborated by my reading of the type widths in lib/xmlparse.c.

I did not check whether other Infix defconfigs build expat for a 32-bit target.

Members of Kernel Kit decide. Sign in if you are one.