cxl/acpi: Fix a use-after-free in cxl_parse_cfmws()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 316db489647b8ddc381682597e89787eac61a278, Kernel 4cf67d3cc9994a59cf77bb9c0ccf9007fe916afe and Kernel 748fadc08bcbdaf573b34d9784bb3dbd87441dbf.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.0, >=e50fe01e1f2a4aba2275edee7d5c77ac87674ddb <316db489647b8ddc381682597e89787eac61a278, >=e50fe01e1f2a4aba2275edee7d5c77ac87674ddb <4cf67d3cc9994a59cf77bb9c0ccf9007fe916afe, >=e50fe01e1f2a4aba2275edee7d5c77ac87674ddb <748fadc08bcbdaf573b34d9784bb3dbd87441dbf | 316db489647b8ddc381682597e89787eac61a278, 4cf67d3cc9994a59cf77bb9c0ccf9007fe916afe, 748fadc08bcbdaf573b34d9784bb3dbd87441dbf |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket