From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795153952; b=4XMIPdktt9Rbh6chN4ZUomCBM60J9Rj42FuOJWc6dqSyQGBCQhsNyMD4ohJgAK2o/TlP igA3HxqKl/yZuqvEMQQCUD4huRrlVeFHQpprfHGIXS85GdbY9P1ov9CPos8VcTfw15MW/ 4sGQP5qTwExfpu6Dgp04XcJtG6PTfrr2Z9urGszgu9X5cglnx8RMVNKTFH4tvPLFuEKtD fULBzO71Fto7MXYGygTDMYz1ghusubcFq1Hb6DKpJ4l9w/XWg0M7x7pEpKiC/YxQ4xE1y vdicuysVuLymbAeTnKCvoVCgJAZnG2fRZRMcRuISAMBEL5n0hl1tiwoxDuZPX5cjZJw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795153952; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=omE7A9eXZTyfPWFH3qF7apdwlDRi1UG8vduhMy8MXYg=; b=lOVSO1QQ5u94EINcBeFc4nAhEDWRWUQL95jtI1WfDkw0lLsyxYdAyo5APhetGKFGoG7x 7f0AGO9oMutDt+1YMcaoCbuJVU4sTj4/Y0hLp3n23zpsT1pTbgFQN8ixpMXQrf2yAIcxf h3PA33Yo0VaALFY7HKH0BqcDiPJK/4exQjxZWcMCQWm099toKJgyDLHp30ClE53sr0lsX So80gMYaTEfD0GRJz5h6DHR5QImMN0mQhBX8z/dsakkM+iP/IqmLc7PhS0hMe5Ksl7Ges X//YM/OdAY7z4V2U3ZdXQJa3ckapX420nSboN36gpfZSIDomkdKfY1H7LyzvgEkmTeg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=O4KKVS9z; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2A4E606A320 for ; Fri, 20 Nov 2026 05:52:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=O4KKVS9z Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDC2F1F000CA; Fri, 20 Nov 2026 05:52:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795153952; bh=omE7A9eXZTyfPWFH3qF7apdwlDRi1UG8vduhMy8MXYg=; h=From:To:Cc:Subject:Date:Reply-To; b=O4KKVS9zJhVBD2swH5CJVnMhfT56tCo9IBZAI/mR5cM5VgI33cGg4hV5a8Ze9Q05k SacE6hfSvdmgsaXbuZJWwuBYY0lW/Z+rmvhGw777VjbH2CL9dCva6XA/8g4RZzQ83N NwvyFxiezcSxPzP+t4dE+TexfXjgOWKXQ5oFbPhs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99567: assoc_array: don't chain a new shortcut onto an existing one Date: Fri, 20 Nov 2026 06:49:13 +0100 Message-ID: <2026112014-CVE-2026-99567-0833@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3683; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ijqqz3qJvYJNshJOC73JD1xKWdgp6nhX/wEbHl/gZoA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/70d1frk12fzo075H3BuEteLFz/EJzTlm/ZDRyELC7 FhIeAhXRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkzzOG+aFxpY6rDznyPFnB c0r7W+W1WwEfpjDMswuU/2Z/OMUxq2NdYEzz3Q7tff+1AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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