GHSA-3M78-JGXV-6WH5
Vulnerability from github – Published: 2026-11-20 06:32 – Updated: 2026-11-20 06:32In the Linux kernel, the following vulnerability has been resolved:
cxl/features: Ensure that count is set before access to ent[] __counted_by()
get_supported_features() assigns entries->num_features only after the memcpy() loop that fills entries->ent[] has already run. Since ent[] is __counted_by(num_features), the compiler's bounds instrumentation sees a 0-length array during that loop and FORTIFY_SOURCE trips on the memcpy. Set @num_features right after allocation, before any write into ent[], so the bound is correct for the whole lifetime of the array.
This was found via a fortify panic:
memcpy: detected buffer overflow: 384 byte write of buffer size 0 WARNING: lib/string_helpers.c:1035 at __fortify_report+0x54/0xa0 kernel BUG at lib/string_helpers.c:1043! Call trace: __fortify_panic+0x10/0x18 get_supported_features.isra.0+0x4a0/0x4d0 [cxl_core] devm_cxl_setup_features+0x84/0x120 [cxl_core] cxl_pci_probe+0x254/0x5e0 [cxl_pci]
Same class of bug, same fix shape as commit 6c9d2e87df40 ("cxl/fwctl: Fix __fortify_panic"), which fixed the analogous issue in cxlctl_get_supported_features() but missed this one.
[ dj: Fixed up title typo per Jonathan. ]
{
"affected": [],
"aliases": [
"CVE-2026-99795"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-20T06:18:19Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/features: Ensure that count is set before access to ent[] __counted_by()\n\nget_supported_features() assigns entries-\u003enum_features only after the\nmemcpy() loop that fills entries-\u003eent[] has already run. Since ent[]\nis __counted_by(num_features), the compiler\u0027s bounds instrumentation\nsees a 0-length array during that loop and FORTIFY_SOURCE trips on\nthe memcpy. Set @num_features right after allocation, before any\nwrite into ent[], so the bound is correct for the whole lifetime of\nthe array.\n\nThis was found via a fortify panic:\n\n memcpy: detected buffer overflow: 384 byte write of buffer size 0\n WARNING: lib/string_helpers.c:1035 at __fortify_report+0x54/0xa0\n kernel BUG at lib/string_helpers.c:1043!\n Call trace:\n __fortify_panic+0x10/0x18\n get_supported_features.isra.0+0x4a0/0x4d0 [cxl_core]\n devm_cxl_setup_features+0x84/0x120 [cxl_core]\n cxl_pci_probe+0x254/0x5e0 [cxl_pci]\n\nSame class of bug, same fix shape as commit 6c9d2e87df40\n(\"cxl/fwctl: Fix __fortify_panic\"), which fixed the analogous issue\nin cxlctl_get_supported_features() but missed this one.\n\n[ dj: Fixed up title typo per Jonathan. ]",
"id": "GHSA-3m78-jgxv-6wh5",
"modified": "2026-11-20T06:32:11Z",
"published": "2026-11-20T06:32:11Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99795"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/63714fa4033b51ce615be6f083be0b19847d0d1e"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/c1031c2474f73261d8d5e4deef2b5dc20fb964f5"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/deb8b87c027db150de626a5808f648b1e52d90a1"
}
],
"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.