bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-76641

8.7high

expat2.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 through 2.8.3 contains an out-of-bounds read vulnerability that allows attackers to trigger memory corruption by processing XML with external entity parsers created via XML_ExternalEntityParserCreate. A struct size mismatch between ELEMENT_TYPE members causes storeAtts to read the attIndex member past allocated memory boundaries, resulting in failure to normalize whitespace in non-CDATA attributes or a wild pointer dereference causing a segfault. This vulnerability was introduced by the fix for CVE-2026-66046.

Published 2026-08-20NVD

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

References 3
Review Av26.10.0x86_64False positive✓ accepted by a member, 2026-11-20 · settles 4 of 8

Fable 5.2 · high confidence · 2026-11-19

The CVE affects Expat through 2.8.3, and this build ships unpatched upstream expat 2.8.4, which is the release that fixes it. The match against 2.8.4 is a version-range error: the NVD entry is still "Awaiting Analysis", so the range it was matched on does not reflect the CVE text.

The source in the build directory confirms the fix is present. The 2.8.4 changelog names CVE-2026-76641 (PR #1331) as fixed, and dtdCopy in lib/xmlparse.c now rebuilds each copied element's defaultAttForName table with correctly sized NAME_AND_DEFAULT_ATTRIBUTE entries, so storeAtts no longer reads attIndex out of bounds.

Reachability was not assessed, because the build is not affected.

Evidence 9
  1. `EXPAT_VERSION = 2.8.4`, which is outside the CVE's stated affected range of "through 2.8.3".

    buildroot/package/expat/expat.mk:7

  2. `XML_MAJOR_VERSION` 2, `XML_MINOR_VERSION` 8, `XML_MICRO_VERSION` 4: the built source really is 2.8.4.

    output/build/expat-2.8.4/lib/expat.h:1097-1099

  3. The tarball hash is taken from the upstream `R_2_8_4` release tag.

    buildroot/package/expat/expat.hash:1-2

  4. "Release 2.8.4 Mon August 31 2026 – Security fixes: #1321 #1331 CVE-2026-66046, CVE-2026-76641". The fix PR #1331 cited by the CVE is part of this release.

    output/build/expat-2.8.4/Changes:19-24

  5. The copied `ELEMENT_TYPE` gets its own `defaultAttForName` hash table initialised for the new parser.

    output/build/expat-2.8.4/lib/xmlparse.c:7803-7804 (dtdCopy)

  6. Each default attribute is re-inserted with `lookup(..., sizeof(NAME_AND_DEFAULT_ATTRIBUTE))` and `attIndex` / `initialized` are set. Entries are allocated at the correct struct size, which removes the size mismatch the CVE describes.

    output/build/expat-2.8.4/lib/xmlparse.c:7837-7852 (dtdCopy)

  7. `storeAtts` reads `nameAndDefaultAttribute->attIndex` from that table, guarded by `assert(attIndex < nDefaultAtts)`; the entries it reads are the correctly sized ones created above.

    output/build/expat-2.8.4/lib/xmlparse.c:3997-4003 (storeAtts)

  8. `NAME_AND_DEFAULT_ATTRIBUTE` is defined with `name`, `attIndex` and `initialized`, matching the allocation size used in `dtdCopy` and `addDefaultAttribute` (line 7333-7336).

    output/build/expat-2.8.4/lib/xmlparse.c:389-401

  9. The file is empty (0 bytes) and `buildroot/package/expat/` holds no patches, so the source is pristine upstream 2.8.4 with nothing that could revert the fix.

    output/build/expat-2.8.4/.applied_patches_list

Version and patches

Affected range per the CVE description: Expat through 2.8.3 (the bug was introduced by the fix for CVE-2026-66046). Fixed version: 2.8.4, per output/build/expat-2.8.4/Changes:19-24 (PR #1331).

This build: unmodified upstream 2.8.4 with no patches applied (output/build/expat-2.8.4/.applied_patches_list is empty). The fixed dtdCopy code is present at output/build/expat-2.8.4/lib/xmlparse.c:7803-7852.

I could not fetch upstream commit 98599f6dcc2b460410881fe420f5f55d6bec63bf from this environment, so the check rests on the in-tree changelog and code rather than a diff against that commit.

Recommendation

Document as not applicable: expat 2.8.4 already contains the fix, so no upgrade or backport is needed.

Consider adding EXPAT_IGNORE_CVES += CVE-2026-76641 (or the equivalent VEX entry) with a note that it is fixed in 2.8.4, until NVD publishes a correct range.

Open questions

None that affect the verdict.

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