CVE-2025-38252

Source
https://cve.org/CVERecord?id=CVE-2025-38252
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38252.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-38252
Downstream
Published
2025-07-09T10:42:31.477Z
Modified
2026-04-02T12:47:53.170790Z
Summary
cxl/ras: Fix CPER handler device confusion
Details

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

cxl/ras: Fix CPER handler device confusion

By inspection, cxlcperhandleproterr() 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 cxlmemdev 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 cxlpci.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38252.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
36f257e3b0ba904f5a4e7fa8dafaa60e88cdd28c
Fixed
4bcb8dd36e9e3fad6c22862ac5b6993df838309b
Fixed
3c70ec71abdaf4e4fa48cd8fdfbbd864d78235a8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38252.json"