* CVE-2026-99567: assoc_array: don't chain a new shortcut onto an existing one
@ 2026-11-20 5:49 Greg Kroah-Hartman
0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-11-20 5:49 UTC (permalink / raw)
To: linux-cve-announce; +Cc: Greg Kroah-Hartman
From: Greg Kroah-Hartman <gregkh@kernel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
assoc_array: don't chain a new shortcut onto an existing one
When a full node's leaves and the new key all share the node's segment,
assoc_array_insert_into_terminal_node() replaces the node with a
shortcut to a pair of new nodes. If the node is itself the target of a
shortcut, the new shortcut is installed as that shortcut's next node,
and a shortcut leading to a shortcut is something nothing expects:
assoc_array_walk() indexes the second one as a node, and
assoc_array_apply_edit() hits the BUG_ON() in the loop that adjusts
nr_leaves_on_branch, on that same insertion.
Deletion gets a node there. When the subtree below a shortcut shrinks
enough, assoc_array_delete() collapses it into one node below the
shortcut, and the leaves it collects can all share that node's segment.
The next key that shares it too takes this path. Eighteen insertions
and a deletion are enough: sixteen keys that agree on bits 0-11, one
that leaves them at bit 8 and is deleted again, and one more that agrees
with the sixteen.
Have the new shortcut replace the one in front of the node as well.
assoc_array_insert_shortcut() gives it that shortcut's back pointer and
parent slot, so the caller installs it where that one was, and excises
the old shortcut along with the node, which takes a second entry in
excised_meta[]. The new shortcut's index key comes from the new key up
to the new skip level, so it covers what the old one did.
Found by a userspace test doing random insertions and deletions on keys
that share long prefixes; a targeted case builds a shortcut, deletes
down to the collapse and inserts one more key.
The Linux kernel CVE team has assigned CVE-2026-99567 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.13 with commit 3cb989501c2688cacbb7dc4b0d353faf838f53a1 and fixed in 6.12.118 with commit 517e7bbfaf5381d47e8d393ff54c61107f8fb1bb
Issue introduced in 3.13 with commit 3cb989501c2688cacbb7dc4b0d353faf838f53a1 and fixed in 6.18.64 with commit 258745fea55ba057c062e0e680a54fde26630e95
Issue introduced in 3.13 with commit 3cb989501c2688cacbb7dc4b0d353faf838f53a1 and fixed in 7.3.5 with commit a7990a72267f264f5284f6bcb90d397b29ac00ed
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99567
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
include/linux/assoc_array_priv.h
lib/assoc_array.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/517e7bbfaf5381d47e8d393ff54c61107f8fb1bb
https://git.kernel.org/stable/c/258745fea55ba057c062e0e680a54fde26630e95
https://git.kernel.org/stable/c/a7990a72267f264f5284f6bcb90d397b29ac00ed
https://git.kernel.org/stable/c/48691075b0adc590a6831390723e3603dfca76fc
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-20 5:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20 5:49 CVE-2026-99567: assoc_array: don't chain a new shortcut onto an existing one Greg Kroah-Hartman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.