{"id":"CVE-2026-99567","aliases":[],"title":"assoc_array: don't chain a new shortcut onto an existing one","originalDescription":"In the Linux kernel, the following vulnerability has been resolved:\n\nassoc_array: don't chain a new shortcut onto an existing one\n\nWhen a full node's leaves and the new key all share the node's segment,\nassoc_array_insert_into_terminal_node() replaces the node with a\nshortcut to a pair of new nodes.  If the node is itself the target of a\nshortcut, the new shortcut is installed as that shortcut's next node,\nand a shortcut leading to a shortcut is something nothing expects:\nassoc_array_walk() indexes the second one as a node, and\nassoc_array_apply_edit() hits the BUG_ON() in the loop that adjusts\nnr_leaves_on_branch, on that same insertion.\n\nDeletion gets a node there.  When the subtree below a shortcut shrinks\nenough, assoc_array_delete() collapses it into one node below the\nshortcut, and the leaves it collects can all share that node's segment.\nThe next key that shares it too takes this path.  Eighteen insertions\nand a deletion are enough: sixteen keys that agree on bits 0-11, one\nthat leaves them at bit 8 and is deleted again, and one more that agrees\nwith the sixteen.\n\nHave the new shortcut replace the one in front of the node as well.\nassoc_array_insert_shortcut() gives it that shortcut's back pointer and\nparent slot, so the caller installs it where that one was, and excises\nthe old shortcut along with the node, which takes a second entry in\nexcised_meta[].  The new shortcut's index key comes from the new key up\nto the new skip level, so it covers what the old one did.\n\nFound by a userspace test doing random insertions and deletions on keys\nthat share long prefixes; a targeted case builds a shortcut, deletes\ndown to the collapse and inserts one more key.","severity":{"cvss":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00232,"percentile":0.15102},"exploitDb":null},"affected":[{"ecosystem":"Linux","name":"Kernel","range":">=3.13.0, <6.12.118","fixed":"6.12.118"},{"ecosystem":"Linux","name":"Kernel","range":">=6.13.0, <6.18.64","fixed":"6.18.64"},{"ecosystem":"Linux","name":"Kernel","range":">=6.19.0, <7.3.5","fixed":"7.3.5"},{"ecosystem":"vendor","name":"Linux","range":">=3cb989501c2688cacbb7dc4b0d353faf838f53a1, <25097b7dd44d659ea396eca9fa11f351fffcbec2","fixed":"25097b7dd44d659ea396eca9fa11f351fffcbec2"},{"ecosystem":"vendor","name":"Linux","range":">=3cb989501c2688cacbb7dc4b0d353faf838f53a1, <258745fea55ba057c062e0e680a54fde26630e95","fixed":"258745fea55ba057c062e0e680a54fde26630e95"},{"ecosystem":"vendor","name":"Linux","range":">=3cb989501c2688cacbb7dc4b0d353faf838f53a1, <340df159851513c3d1ab73c679e13c3f9576a698","fixed":"340df159851513c3d1ab73c679e13c3f9576a698"},{"ecosystem":"vendor","name":"Linux","range":">=3cb989501c2688cacbb7dc4b0d353faf838f53a1, <48691075b0adc590a6831390723e3603dfca76fc","fixed":"48691075b0adc590a6831390723e3603dfca76fc"},{"ecosystem":"vendor","name":"Linux","range":">=3cb989501c2688cacbb7dc4b0d353faf838f53a1, <517e7bbfaf5381d47e8d393ff54c61107f8fb1bb","fixed":"517e7bbfaf5381d47e8d393ff54c61107f8fb1bb"},{"ecosystem":"vendor","name":"Linux","range":">=3cb989501c2688cacbb7dc4b0d353faf838f53a1, <61fce0632e56f9e80140453a42c8d876efd0aee7","fixed":"61fce0632e56f9e80140453a42c8d876efd0aee7"},{"ecosystem":"vendor","name":"Linux","range":">=3cb989501c2688cacbb7dc4b0d353faf838f53a1, <a7990a72267f264f5284f6bcb90d397b29ac00ed","fixed":"a7990a72267f264f5284f6bcb90d397b29ac00ed"},{"ecosystem":"vendor","name":"Linux","range":">=3cb989501c2688cacbb7dc4b0d353faf838f53a1, <dc1105e231546fdef16b8a98a36bddee08644098","fixed":"dc1105e231546fdef16b8a98a36bddee08644098"}],"references":[{"url":"https://git.kernel.org/stable/c/517e7bbfaf5381d47e8d393ff54c61107f8fb1bb","type":"other"},{"url":"https://git.kernel.org/stable/c/258745fea55ba057c062e0e680a54fde26630e95","type":"other"},{"url":"https://git.kernel.org/stable/c/a7990a72267f264f5284f6bcb90d397b29ac00ed","type":"other"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99567.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99567","type":"advisory"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","type":"package"},{"url":"https://git.kernel.org/stable/c/48691075b0adc590a6831390723e3603dfca76fc","type":"other"},{"url":"https://git.kernel.org/stable/c/dc1105e231546fdef16b8a98a36bddee08644098","type":"other"},{"url":"https://git.kernel.org/stable/c/61fce0632e56f9e80140453a42c8d876efd0aee7","type":"other"},{"url":"https://git.kernel.org/stable/c/25097b7dd44d659ea396eca9fa11f351fffcbec2","type":"other"},{"url":"https://git.kernel.org/stable/c/340df159851513c3d1ab73c679e13c3f9576a698","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.396Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99567","license":"NVD terms of use","firstSeenAt":"2026-11-20T06:30:45.773Z"},{"name":"osv","at":"2026-11-23T07:41:06.341Z","url":"https://osv.dev/vulnerability/CVE-2026-99567","license":"CC-BY 4.0","firstSeenAt":"2026-11-22T13:31:47.237Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:56.149Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99567","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T06:28:11.381Z"}],"firstSeenAt":"2026-11-20T06:28:11.381Z","publishedAt":"2026-11-20T05:49:03.237Z","modifiedAt":"2026-11-23T08:17:58.737Z"}