# CVE-2023-53479: cxl/acpi: Fix a use-after-free in cxl_parse_cfmws()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-10-01T11:42:47.987Z
- Modified: 2026-06-17T06:45:26.020Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

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

cxl/acpi: Fix a use-after-free in cxl_parse_cfmws()

KASAN and KFENCE detected an user-after-free in the CXL driver. This
happens in the cxl_decoder_add() fail path. KASAN prints the following
error:

   BUG: KASAN: slab-use-after-free in cxl_parse_cfmws (drivers/cxl/acpi.c:299)

This happens in cxl_parse_cfmws(), where put_device() is called,
releasing cxld, which is accessed later.

Use the local variables in the dev_err() instead of pointing to the
released memory. Since the dev_err() is printing a resource, change the open
coded print format to use the %pr format specifier.

(As written by CVE List.)

## Affected

- Linux Linux: from e50fe01e1f2a4aba2275edee7d5c77ac87674ddb before 748fadc08bcbdaf573b34d9784bb3dbd87441dbf; from e50fe01e1f2a4aba2275edee7d5c77ac87674ddb before 316db489647b8ddc381682597e89787eac61a278; from e50fe01e1f2a4aba2275edee7d5c77ac87674ddb before 4cf67d3cc9994a59cf77bb9c0ccf9007fe916afe; 6.0 (not affected: before 6.0; from 6.1.43 up to 6.1.*; from 6.4.8 up to 6.4.*; from 6.5 up to *)
- linux linux_kernel: from 6.0 before 6.1.43; from 6.2 before 6.4.8; 6.5

## References

- <https://git.kernel.org/stable/c/748fadc08bcbdaf573b34d9784bb3dbd87441dbf> (patch)
- <https://git.kernel.org/stable/c/316db489647b8ddc381682597e89787eac61a278> (patch)
- <https://git.kernel.org/stable/c/4cf67d3cc9994a59cf77bb9c0ccf9007fe916afe> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-53479 · Whole record: https://cve.day/CVE-2023-53479.json · Rebuilt by cve.day 2026-11-25T22:58:34.902Z
