# CVE-2025-38252: cxl/ras: Fix CPER handler device confusion

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2025-07-09T10:42:31.477Z
- Modified: 2026-08-05T12:00:44.757Z
- Assigned by: Linux

## Description

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

cxl/ras: Fix CPER handler device confusion

By inspection, cxl_cper_handle_prot_err() is making a series of fragile
assumptions that can lead to crashes:

1/ It assumes that endpoints identified in the record are a CXL-type-3
   device, nothing guarantees that.

2/ It assumes that the device is bound to the cxl_pci driver, nothing
   guarantees that.

3/ Minor, it holds the device lock over the switch-port tracing for no
   reason as the trace is 100% generated from data in the record.

Correct those by checking that the PCIe endpoint parents a cxl_memdev
before assuming the format of the driver data, and move the lock to where
it is required. Consequently this also makes the implementation ready for
CXL accelerators that are not bound to cxl_pci.

(As written by CVE List.)

## Affected

- Linux Linux: from 36f257e3b0ba904f5a4e7fa8dafaa60e88cdd28c before 4bcb8dd36e9e3fad6c22862ac5b6993df838309b; from 36f257e3b0ba904f5a4e7fa8dafaa60e88cdd28c before 3c70ec71abdaf4e4fa48cd8fdfbbd864d78235a8; 6.15 (not affected: before 6.15; from 6.15.5 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.15 before 6.15.5; 6.16

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/4bcb8dd36e9e3fad6c22862ac5b6993df838309b> (patch)
- <https://git.kernel.org/stable/c/3c70ec71abdaf4e4fa48cd8fdfbbd864d78235a8> (patch)

## Sources

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

---

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