Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143430

assoc_array: don't lose objects when a root shortcut is split at level 4

Description

In the Linux kernel, the following vulnerability has been resolved: assoc_array: don't lose objects when a root shortcut is split at level 4 assoc_array_insert_mid_shortcut() takes level, the level of the node holding the shortcut as assoc_array_walk() reports it, and adds ASSOC_ARRAY_LEVEL_STEP to get the level of a node in that shortcut's place. If the new key first differs from the shortcut no further in than that, no shortcut is made in front of the split, and new_n0 takes the old shortcut's place directly. A shortcut at the root is held by no node. assoc_array_walk() reports level 0 for it, and whatever takes its place is the root, which is read at level 0. So when the new key first differs from a root shortcut in bits 4-7, diff is 4, no shortcut is made in front, and new_n0, whose slots are indexed by bits 4-7, becomes the root and is indexed by bits 0-3. Objects already in the array can no longer be found, and the new one lands in a slot its key does not select. Eighteen keys are enough: seventeen that agree on bits 0-7 make the root a shortcut, and one that agrees with them on bits 0-3 only splits it. Three of the eighteen objects can then not be found, and inserting one of those keys again adds a second object instead of replacing it. Only add the step for a shortcut that hangs from a node. A root shortcut split at level 4 then gets a shortcut in front of the split that ends at level 4, as assoc_array_insert_into_terminal_node() already makes when the leaves of a full root node first differ there. Found by a userspace test that builds a shortcut ending at every level and splits it at every level inside it, from the root and from a node: every split of a root shortcut at level 4 failed, and nothing else did.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 3cb989501c2688cacbb7dc4b0d353faf838f53a1 to < 8c3ec98127caa4b789df10cd25ae5502bbe0a804affected
  • 3cb989501c2688cacbb7dc4b0d353faf838f53a1 to < da0c5e0ea36153488ebc87c1b5af6696601e665baffected
  • 3cb989501c2688cacbb7dc4b0d353faf838f53a1 to < ae89c62ddd211e4b179660a91b58f801e35c30bcaffected
  • 3cb989501c2688cacbb7dc4b0d353faf838f53a1 to < ec1eace9490083e495c6f0e7738dcdcfe38d7adbaffected
  • 3cb989501c2688cacbb7dc4b0d353faf838f53a1 to < f4bd73f6c2d41cf80828ecbceaae76a95528e8f4affected
  • 3cb989501c2688cacbb7dc4b0d353faf838f53a1 to < aadaf6c7af2e5709e1ae4f19684403a541b3a54caffected
  • 3cb989501c2688cacbb7dc4b0d353faf838f53a1 to < eb7793e6bb05627e1259d85b7910988c5540b074affected
  • 3cb989501c2688cacbb7dc4b0d353faf838f53a1 to < 20b436c1ae8d37032f888c725915729830dc52f2affected

Linux Linux

Default version status: affected

  • 3.13affected
  • 0 to < 3.13unaffected
  • 5.10.275 to ≤ 5.10.*unaffected
  • 5.15.226 to ≤ 5.15.*unaffected
  • 6.1.193 to ≤ 6.1.*unaffected
  • 6.6.163 to ≤ 6.6.*unaffected
  • 6.12.118 to ≤ 6.12.*unaffected
  • 6.18.64 to ≤ 6.18.*unaffected
  • 7.3.5 to ≤ 7.3.*unaffected
  • 7.4-rc4 to ≤ *unaffected

References