cxl/acpi: Fix a use-after-free in cxl_parse_cfmws()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.43, 6.4.8
- CVEs
- CVE-2023-53479
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 23:19 UTC · Revision 1
Source evidence
cxl/acpi: Fix a use-after-free in cxl_parse_cfmws()
core-osv · Original sourcePublished 1 Oct 2025, 11:42 UTC
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.
osv:CVE-2023-53479
Kernel
Fixed versions: 6.1.43, 6.4.8
Complete source record
{
"id": "e31044ebecf1d483f570f926f462b824cd945de9148800cd4bdfeec2e37b99eb",
"url": "https://osv.dev/vulnerability/CVE-2023-53479",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "cxl/acpi: Fix a use-after-free in cxl_parse_cfmws()",
"summary": "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.",
"evidence": "osv:CVE-2023-53479",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.43",
"evidence": "/affected/1/ranges"
},
{
"value": "6.4.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-53479",
"aliases": [
"CVE-2023-53479"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "e50fe01e1f2a4aba2275edee7d5c77ac87674ddb"
},
{
"fixed": "748fadc08bcbdaf573b34d9784bb3dbd87441dbf"
},
{
"fixed": "316db489647b8ddc381682597e89787eac61a278"
},
{
"fixed": "4cf67d3cc9994a59cf77bb9c0ccf9007fe916afe"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53479.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.0.0"
},
{
"fixed": "6.1.43"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.4.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53479.json"
}
}
],
"modified": "2026-10-28T02:30:24.285806907Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/316db489647b8ddc381682597e89787eac61a278",
"https://git.kernel.org/stable/c/4cf67d3cc9994a59cf77bb9c0ccf9007fe916afe",
"https://git.kernel.org/stable/c/748fadc08bcbdaf573b34d9784bb3dbd87441dbf",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53479.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-53479",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53479.json"
}
},
"related_cves": [
{
"value": "CVE-2023-53479",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 490839,
"published_at": "2025-10-01T11:42:47.987+00:00"
}