assoc_array: don't lose objects when a shortcut is split on a word boundary
Summary
| CVE | CVE-2026-142869 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-03 04:18:24 UTC |
| Updated | 2026-12-03 04:18:24 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved:
assoc_array: don't lose objects when a shortcut is split on a word boundary
When assoc_array_insert_mid_shortcut() splits a shortcut at level diff,
the new shortcut in front of the split, new_s0, gets the first
round_up(diff, ASSOC_ARRAY_KEY_CHUNK_SIZE) bits of the old shortcut's
index key, and the bits from diff onwards are then cleared from its
last word:
blank = ULONG_MAX << (diff & ASSOC_ARRAY_KEY_CHUNK_MASK);
new_s0->index_key[keylen - 1] &= ~blank;
When diff is a multiple of ASSOC_ARRAY_KEY_CHUNK_SIZE, the shift is 0,
blank is all ones, and the whole last word is cleared, although all of
it lies below diff. A walk then compares the key it is looking for
against that zeroed word, takes the shortcut to point elsewhere, and
every object below it can no longer be found.
assoc_array_insert_into_terminal_node() trims a new shortcut's key the
same way, and only when the level is not a multiple of the chunk size.
Do the same here.
Found by a userspace build of the array with a test that inserts, in
order, string keys whose first word is their length and the rest their
bytes. The 102nd key split a shortcut at bit 256, and 76 of the keys
already in the array could no longer be found; AddressSanitizer also
reported assoc_array_walk() reading a word past the end of a shortcut's
index key. With this change the test passes, and AddressSanitizer and
UndefinedBehaviorSanitizer report nothing. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected 3cb989501c2688cacbb7dc4b0d353faf838f53a1 60da029528d18a26123be34875cb91fb0f5e959f git |
Not specified |
| CNA |
Linux |
Linux |
affected 3cb989501c2688cacbb7dc4b0d353faf838f53a1 06b33bfc0be74737482ee78dc7b2fcc153e6b567 git |
Not specified |
| CNA |
Linux |
Linux |
affected 3cb989501c2688cacbb7dc4b0d353faf838f53a1 82e9025f6b7ee56dbdce7afa3fbc7d8bebb94bee git |
Not specified |
| CNA |
Linux |
Linux |
affected 3cb989501c2688cacbb7dc4b0d353faf838f53a1 268f2e407f0ce2283fb6499ecdb8d638fd7194df git |
Not specified |
| CNA |
Linux |
Linux |
affected 3cb989501c2688cacbb7dc4b0d353faf838f53a1 d1cecb9eb3aefdbfb080dbbe25759cc88f156227 git |
Not specified |
| CNA |
Linux |
Linux |
affected 3cb989501c2688cacbb7dc4b0d353faf838f53a1 ef21e27b5023cfca26a7b60fbdfd65580bee98ad git |
Not specified |
| CNA |
Linux |
Linux |
affected 3cb989501c2688cacbb7dc4b0d353faf838f53a1 8eadc369b9dbd31ac8d4d8815f1cb671f355d29c git |
Not specified |
| CNA |
Linux |
Linux |
affected 3cb989501c2688cacbb7dc4b0d353faf838f53a1 2a62c32760a8fbf464a7388853d19bc62c5cc423 git |
Not specified |
| CNA |
Linux |
Linux |
affected 3.13 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 3.13 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.10.275 5.10.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.15.226 5.15.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.1.193 6.1.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.6.163 6.6.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.12.118 6.12.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.64 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.3.5 7.3.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.4-rc4 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/2a62c32760a8fbf464a7388853d19bc62c5cc423 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/82e9025f6b7ee56dbdce7afa3fbc7d8bebb94bee |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/268f2e407f0ce2283fb6499ecdb8d638fd7194df |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/ef21e27b5023cfca26a7b60fbdfd65580bee98ad |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/60da029528d18a26123be34875cb91fb0f5e959f |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/8eadc369b9dbd31ac8d4d8815f1cb671f355d29c |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/06b33bfc0be74737482ee78dc7b2fcc153e6b567 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/d1cecb9eb3aefdbfb080dbbe25759cc88f156227 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.