GHSA-6Q47-55Q5-4JHC
Vulnerability from github – Published: 2026-11-20 06:32 – Updated: 2026-11-23 09:30In 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.
{
"affected": [],
"aliases": [
"CVE-2026-99566"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-20T06:17:47Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nassoc_array: keep gc\u0027s cleanup out of the live tree on allocation failure\n\nassoc_array_gc() builds a copy of the tree. Where the copy reaches a\nshortcut, it allocates the copy of the shortcut with kmalloc_flex(),\nfills it with memcpy(), links it into the new tree, and only then\nallocates the copy of the node after it. The memcpy() leaves the new\nshortcut\u0027s next_node pointing at the old tree\u0027s node, so if that second\nallocation fails, the cleanup, assoc_array_destroy_subtree() on the new\ntree, follows the new shortcut into the old tree, and the BUG_ON() on\nthe old node\u0027s back pointer fires.\n\nAllocate the node first, and the shortcut once the node exists, freeing\nthe node again if the shortcut cannot be allocated. A copied shortcut\nis then only linked into the new tree when the copy of its node is there\nto follow it. Nothing else changes: with no allocation failing, the\ntrees gc builds are the same as before.\n\nFound by a userspace test that makes each allocation of each operation\nfail in turn.",
"id": "GHSA-6q47-55q5-4jhc",
"modified": "2026-11-23T09:30:49Z",
"published": "2026-11-20T06:32:01Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99566"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/5511f84917cc4021b46fdf626ae354f28824dacb"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/86ea23a14af6e909dd4d3f92ff370f3b06bc6827"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/8afff2e4b90978b8203f9e3898995dcf86821b49"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/8d7e5fade0a956775d7d695499df490ef3e96a07"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/c80609763abd3f8ee7c1fe69dd43b07abff474f0"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/c9138a6357a68762e499143160d0d7e0cba3228c"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/cd39c75fbd52017064879061c2f97fa573984c93"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/f1c3efeb27f2663f1bcd6f794e22aca96c61f018"
}
],
"schema_version": "1.4.0",
"severity": []
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.