{"id":"CVE-2026-142869","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T04:18:24.727","lastModified":"2026-12-03T04:18:24.727","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nassoc_array: don't lose objects when a shortcut is split on a word boundary\n\nWhen assoc_array_insert_mid_shortcut() splits a shortcut at level diff,\nthe new shortcut in front of the split, new_s0, gets the first\nround_up(diff, ASSOC_ARRAY_KEY_CHUNK_SIZE) bits of the old shortcut's\nindex key, and the bits from diff onwards are then cleared from its\nlast word:\n\n\tblank = ULONG_MAX << (diff & ASSOC_ARRAY_KEY_CHUNK_MASK);\n\tnew_s0->index_key[keylen - 1] &= ~blank;\n\nWhen diff is a multiple of ASSOC_ARRAY_KEY_CHUNK_SIZE, the shift is 0,\nblank is all ones, and the whole last word is cleared, although all of\nit lies below diff.  A walk then compares the key it is looking for\nagainst that zeroed word, takes the shortcut to point elsewhere, and\nevery object below it can no longer be found.\n\nassoc_array_insert_into_terminal_node() trims a new shortcut's key the\nsame way, and only when the level is not a multiple of the chunk size.\nDo the same here.\n\nFound by a userspace build of the array with a test that inserts, in\norder, string keys whose first word is their length and the rest their\nbytes.  The 102nd key split a shortcut at bit 256, and 76 of the keys\nalready in the array could no longer be found; AddressSanitizer also\nreported assoc_array_walk() reading a word past the end of a shortcut's\nindex key.  With this change the test passes, and AddressSanitizer and\nUndefinedBehaviorSanitizer report nothing."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["lib/assoc_array.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"3cb989501c2688cacbb7dc4b0d353faf838f53a1","lessThan":"60da029528d18a26123be34875cb91fb0f5e959f","versionType":"git","status":"affected"},{"version":"3cb989501c2688cacbb7dc4b0d353faf838f53a1","lessThan":"06b33bfc0be74737482ee78dc7b2fcc153e6b567","versionType":"git","status":"affected"},{"version":"3cb989501c2688cacbb7dc4b0d353faf838f53a1","lessThan":"82e9025f6b7ee56dbdce7afa3fbc7d8bebb94bee","versionType":"git","status":"affected"},{"version":"3cb989501c2688cacbb7dc4b0d353faf838f53a1","lessThan":"268f2e407f0ce2283fb6499ecdb8d638fd7194df","versionType":"git","status":"affected"},{"version":"3cb989501c2688cacbb7dc4b0d353faf838f53a1","lessThan":"d1cecb9eb3aefdbfb080dbbe25759cc88f156227","versionType":"git","status":"affected"},{"version":"3cb989501c2688cacbb7dc4b0d353faf838f53a1","lessThan":"ef21e27b5023cfca26a7b60fbdfd65580bee98ad","versionType":"git","status":"affected"},{"version":"3cb989501c2688cacbb7dc4b0d353faf838f53a1","lessThan":"8eadc369b9dbd31ac8d4d8815f1cb671f355d29c","versionType":"git","status":"affected"},{"version":"3cb989501c2688cacbb7dc4b0d353faf838f53a1","lessThan":"2a62c32760a8fbf464a7388853d19bc62c5cc423","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["lib/assoc_array.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"3.13","status":"affected"},{"version":"0","lessThan":"3.13","versionType":"semver","status":"unaffected"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc4","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/06b33bfc0be74737482ee78dc7b2fcc153e6b567","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/268f2e407f0ce2283fb6499ecdb8d638fd7194df","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/2a62c32760a8fbf464a7388853d19bc62c5cc423","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/60da029528d18a26123be34875cb91fb0f5e959f","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/82e9025f6b7ee56dbdce7afa3fbc7d8bebb94bee","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/8eadc369b9dbd31ac8d4d8815f1cb671f355d29c","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/d1cecb9eb3aefdbfb080dbbe25759cc88f156227","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/ef21e27b5023cfca26a7b60fbdfd65580bee98ad","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}