# CVE-2026-99566: assoc\_array: keep gc's cleanup out of the live tree on allocation failure

- Priority: **Insufficient evidence**
- Reason: No CVSS vector published; no exploitation reported by the 5 checked sources
- Next step: Check the vendor advisory
- Status: published
- Published: 2026-11-20 · Modified: 2026-11-23
- Aliases: DEBIAN-CVE-2026-99566, UBUNTU-CVE-2026-99566, CGA-25mq-mcj4-m8c3, CGA-2m3v-hq6h-ghj2, CGA-3gvx-gw3w-26v6, CGA-3hr8-hf3g-x65g, CGA-86c2-8h2h-9c7g, CGA-9jr7-343j-gcgm, CGA-g985-v8gv-5232, CGA-hg6c-jm6v-55wq, CGA-hggj-v53j-29wv, CGA-hh86-xcw4-4666, CGA-p25p-j34g-rvfm, CGA-2p67-q5q7-4hg9, CGA-92r6-g7mr-pq8m, CGA-mj65-wrmm-3f24, CGA-qc93-vqq2-2844, CGA-r2j5-v88m-7v5h, CGA-x7f5-4hhp-h35v, CGA-xvgj-4vxp-p7v9, CGA-pfcq-4wpq-fq58
- Record: https://cvemate.com/vulnerability/CVE-2026-99566 · JSON: https://cvemate.com/vulnerability/CVE-2026-99566/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

assoc_array: keep gc's cleanup out of the live tree on allocation failure

assoc_array_gc() builds a copy of the tree.  Where the copy reaches a
shortcut, it allocates the copy of the shortcut with kmalloc_flex(),
fills it with memcpy(), links it into the new tree, and only then
allocates the copy of the node after it.  The memcpy() leaves the new
shortcut's next_node pointing at the old tree's node, so if that second
allocation fails, the cleanup, assoc_array_destroy_subtree() on the new
tree, follows the new shortcut into the old tree, and the BUG_ON() on
the old node's back pointer fires.

Allocate the node first, and the shortcut once the node exists, freeing
the node again if the shortcut cannot be allocated.  A copied shortcut
is then only linked into the new tree when the copy of its node is there
to follow it.  Nothing else changes: with no allocation failing, the
trees gc builds are the same as before.

Found by a userspace test that makes each allocation of each operation
fail in turn.
```

## Signals

- CVSS: none published
- EPSS: 0.211%, percentile 11.989%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 182)

- chainguard linux-desktop-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-modules (Chainguard): All versions (No fix recorded)
- debian linux (Debian): All versions (No fix recorded) \| \< 6.12.118-1 \| \< 7.3.5-1
- debian linux-6.12 (Debian): \< 6.12.118-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/cd39c75fbd52017064879061c2f97fa573984c93>
- <https://git.kernel.org/stable/c/c9138a6357a68762e499143160d0d7e0cba3228c>
- <https://git.kernel.org/stable/c/c80609763abd3f8ee7c1fe69dd43b07abff474f0>
- <https://security-tracker.debian.org/tracker/CVE-2026-99566>
- <https://git.kernel.org/stable/c/8afff2e4b90978b8203f9e3898995dcf86821b49>
- <https://git.kernel.org/stable/c/86ea23a14af6e909dd4d3f92ff370f3b06bc6827>
- <https://git.kernel.org/stable/c/f1c3efeb27f2663f1bcd6f794e22aca96c61f018>
- <https://git.kernel.org/stable/c/5511f84917cc4021b46fdf626ae354f28824dacb>
- <https://git.kernel.org/stable/c/8d7e5fade0a956775d7d695499df490ef3e96a07>
- <https://ubuntu.com/security/CVE-2026-99566>
- <https://www.cve.org/CVERecord?id=CVE-2026-99566>

---

Data as of 2026-12-05T03:57:24.785Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
