Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-38252

published high CVSS 3.1 · 7.8

cxl/ras: Fix CPER handler device confusion

Published
09 Jul 2025, 10:42:31 UTC
Updated
05 Aug 2026, 12:00:44 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux36f257e3b0ba904f5a4e7fa8dafaa60e88cdd28c to < 4bcb8dd36e9e3fad6c22862ac5b6993df838309b · 36f257e3b0ba904f5a4e7fa8dafaa60e88cdd28c to < 3c70ec71abdaf4e4fa48cd8fdfbbd864d78235a8 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.15 (affected) · 0 to < 6.15 (unaffected · semver) · 6.15.5 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable handler is driven by ACPI APEI/GHES CXL Protocol Error records processed entirely on the local host; there is no network- or peer-supplied data path. The most severe reachable trigger is local — a VM tenant or local user driving an assigned/attached CXL endpoint into protocol errors, or the local EINJ CXL protocol-error injection path. AC:L - Once a CXL Protocol Error record naming a non-cxl_pci endpoint is processed, the type confusion is deterministic — no race to win and no memory-layout condition to guess. The endpoint branch is taken for every non-port PCIe device and `pci_get_drvdata()` is blindly cast, so the attacker reliably reaches the bad dereference. PR:L - No capability, credential, or privilege check exists anywhere on the path from `ghes_do_proc()` through `cxl_cper_post_prot_err()` to `cxl_cper_handle_prot_err()`. An unprivileged-equivalent actor — a guest tenant controlling a passed-through CXL/PCIe device, or a local user with access to a CXL device that can be driven into link errors — suffices; host root is not required. UI:N - The record is consumed automatically by the GHES notification path and the CXL workqueue with no victim action. No mount, file open, or any other user step is involved. S:U - The type confusion and its consequences are confined to the kernel's own memory and security authority. No IOMMU, hypervisor, or sandbox boundary is bypassed by the defect itself. C:H - The confused `cxlmd` pointer is dereferenced by `dev_name()` and `cxlmd->cxlds->serial`, copying strings and a 64-bit value read from an unvalidated kernel address into the ftrace ring buffer. That is an unbounded out-of-bounds read that leaks kernel memory contents and pointer-derived data. I:H - This is a type confusion — another driver's private structure is reinterpreted as `struct cxl_dev_state`, with the interpreted pointer chased through multiple levels. Per type-confusion handling, the corrupted interpretation of driver-owned state and the falsified RAS telemetry it produces are treated as a high integrity impact. A:H - Dereferencing a garbage `cxlmd` taken from a foreign driver's private data reliably faults, producing a kernel oops in the `cxl_cper_prot_err_work_fn` workqueue context. Repeated error records reproduce the crash, giving a full denial of service.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 36f257e3b0ba904f5a4e7fa8dafaa60e88cdd28c to < 4bcb8dd36e9e3fad6c22862ac5b6993df838309b (affected · git)36f257e3b0ba904f5a4e7fa8dafaa60e88cdd28c to < 3c70ec71abdaf4e4fa48cd8fdfbbd864d78235a8 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.15 (affected)0 to < 6.15 (unaffected · semver)6.15.5 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

cxl/ras: Fix CPER handler device confusion

Provenance

Schema
5.2
Searchable
yes
Content hash
94a5c0c5bfe907cfb1f3af1c3bdfe24dd207dcb38b0844bbb7fcf11f3037cdd0
Ingested
23 Sep 2026, 08:46:29 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected