# CVE-2025-40089: cxl/features: Add check for no entries in cxl_feature_info

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-10-30T09:47:57.990Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## Description

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

cxl/features: Add check for no entries in cxl_feature_info

cxl EDAC calls cxl_feature_info() to get the feature information and
if the hardware has no Features support, cxlfs may be passed in as
NULL.

[   51.957498] BUG: kernel NULL pointer dereference, address: 0000000000000008
[   51.965571] #PF: supervisor read access in kernel mode
[   51.971559] #PF: error_code(0x0000) - not-present page
[   51.977542] PGD 17e4f6067 P4D 0
[   51.981384] Oops: Oops: 0000 [#1] SMP NOPTI
[   51.986300] CPU: 49 UID: 0 PID: 3782 Comm: systemd-udevd Not tainted 6.17.0dj
test+ #64 PREEMPT(voluntary)
[   51.997355] Hardware name: <removed>
[   52.009790] RIP: 0010:cxl_feature_info+0xa/0x80 [cxl_core]

Add a check for cxlfs before dereferencing it and return -EOPNOTSUPP if
there is no cxlfs created due to no hardware support.

(As written by CVE List.)

## Affected

- Linux Linux: from eb5dfcb9e36d0e46089fec777d911313c1876fa3 before b8a69e3b1a460bf5d96dd53cbd121aa2cd346886; from eb5dfcb9e36d0e46089fec777d911313c1876fa3 before a375246fcf2bbdaeb1df7fa7ee5a8b884a89085e; 6.15 (not affected: before 6.15; from 6.17.5 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/b8a69e3b1a460bf5d96dd53cbd121aa2cd346886>
- <https://git.kernel.org/stable/c/a375246fcf2bbdaeb1df7fa7ee5a8b884a89085e>

## Sources

- CVE List: [CVE-2025-40089](https://www.cve.org/CVERecord?id=CVE-2025-40089), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-40089](https://nvd.nist.gov/vuln/detail/CVE-2025-40089), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40089 · Whole record: https://cve.day/CVE-2025-40089.json · Rebuilt by cve.day 2026-11-25T22:59:07.030Z
