CVE-2026-99795
Last modified
CVE-2026-99795 is a vulnerability of currently unknown severity. In 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.
Description
In 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 Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= f0e6a2329bf9d44138be2163370ae9537cbdaf74, < 63714fa4033b51ce615be6f083be0b19847d0d1e; >= f0e6a2329bf9d44138be2163370ae9537cbdaf74, < deb8b87c027db150de626a5808f648b1e52d90a1; >= f0e6a2329bf9d44138be2163370ae9537cbdaf74, < c1031c2474f73261d8d5e4deef2b5dc20fb964f5 |
| Linux | Linux | 6.15 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-99795?
How severe is CVE-2026-99795?
How do I fix CVE-2026-99795?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-9979Insufficient validation of untrusted input in Input in Googl…5
- CVE-2026-99790In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99791In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99792In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2026-99793In the Linux kernel, the following vulnerability has been re…8.1
- CVE-2026-99794In the Linux kernel, the following vulnerability has been re…8.3
- CVE-2026-99796In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99797In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99798In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-99799In the Linux kernel, the following vulnerability has been re…
- CVE-2026-9980Insufficient validation of untrusted input in Printing in Go…5
- CVE-2026-99800In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2026-99795?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
