# CVE-2026-99795: cxl/features: Ensure that count is set before access to ent\[\] \_\_counted\_by()

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-11-20T05:51:54.478Z
- **Modified:** 2026-11-20T06:18:19.000Z

## Who should check

- Anyone running Linux \>= f0e6a2329bf9d44138be2163370ae9537cbdaf74, \< 63714fa4033b51ce615be6f083be0b19847d0d1e; \>= f0e6a2329bf9d44138be2163370ae9537cbdaf74, \< deb8b87c027db150de626a5808f648b1e52d90a1; \>= f0e6a2329bf9d44138be2163370ae9537cbdaf74, \< c1031c2474f73261d8d5e4deef2b5dc20fb964f5
- Anyone running Linux 6.15

## 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 and fixed versions

- Linux: \>= f0e6a2329bf9d44138be2163370ae9537cbdaf74, \< 63714fa4033b51ce615be6f083be0b19847d0d1e; \>= f0e6a2329bf9d44138be2163370ae9537cbdaf74, \< deb8b87c027db150de626a5808f648b1e52d90a1; \>= f0e6a2329bf9d44138be2163370ae9537cbdaf74, \< c1031c2474f73261d8d5e4deef2b5dc20fb964f5 (cvelist)
- Linux: 6.15 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99795. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99795.md
Affected: Linux >= f0e6a2329bf9d44138be2163370ae9537cbdaf74, < 63714fa4033b51ce615be6f083be0b19847d0d1e; >= f0e6a2329bf9d44138be2163370ae9537cbdaf74, < deb8b87c027db150de626a5808f648b1e52d90a1; >= f0e6a2329bf9d44138be2163370ae9537cbdaf74, < c1031c2474f73261d8d5e4deef2b5dc20fb964f5; Linux 6.15
Fixed in: Linux 63714fa4033b51ce615be6f083be0b19847d0d1e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99795 being exploited?

There is no confirmed exploitation: CVE-2026-99795 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-99795?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99795?

Linux \>= f0e6a2329bf9d44138be2163370ae9537cbdaf74, \< 63714fa4033b51ce615be6f083be0b19847d0d1e; \>= f0e6a2329bf9d44138be2163370ae9537cbdaf74, \< deb8b87c027db150de626a5808f648b1e52d90a1; \>= f0e6a2329bf9d44138be2163370ae9537cbdaf74, \< c1031c2474f73261d8d5e4deef2b5dc20fb964f5; Linux 6.15.

### Is there a fix for CVE-2026-99795?

Yes. Fixed in Linux 63714fa4033b51ce615be6f083be0b19847d0d1e. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99795?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/63714fa4033b51ce615be6f083be0b19847d0d1e>
- other: <https://git.kernel.org/stable/c/deb8b87c027db150de626a5808f648b1e52d90a1>
- other: <https://git.kernel.org/stable/c/c1031c2474f73261d8d5e4deef2b5dc20fb964f5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99795>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99795> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99795>
