CVE-2026-142869: assoc_array: don't lose objects when a shortcut is split on a word boundary

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

assocarray: don't lose objects when a shortcut is split on a word boundary

When assocarrayinsertmidshortcut() splits a shortcut at level diff, the new shortcut in front of the split, news0, gets the first roundup(diff, ASSOCARRAYKEYCHUNKSIZE) bits of the old shortcut's index key, and the bits from diff onwards are then cleared from its last word:

blank = ULONGMAX << (diff & ASSOCARRAYKEYCHUNKMASK); news0->indexkey[keylen - 1] &= ~blank;

When diff is a multiple of ASSOCARRAYKEYCHUNKSIZE, 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.

assocarrayinsertintoterminalnode() 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 assocarraywalk() reading a word past the end of a shortcut's index key. With this change the test passes, and AddressSanitizer and UndefinedBehaviorSanitizer report nothing.

Affected Software

1 affected component
Linux Linux kernel

Event History

Dec 3, 2026
CVE Published
via MITRE·03:23 AM
Data Sourced
via MITRE·03:23 AM
Description

Frequently Asked Questions

1

Under what condition does the lookup failure occur?

It occurs when assoc_array_insert_mid_shortcut() splits a shortcut at a bit position that is an exact multiple of ASSOC_ARRAY_KEY_CHUNK_SIZE. In that case, the last word of the new shortcut's index key is incorrectly cleared.

2

What is the observable effect on entries below the affected shortcut?

A subsequent walk can compare against the zeroed key word and follow the shortcut to the wrong location. Objects beneath that shortcut can no longer be found.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203