CVE-2022-49223
Severity CVSS v4.0:
Pending analysis
Type:
CWE-416
Use After Free
Publication date:
26/02/2025
Last modified:
25/03/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
cxl/port: Hold port reference until decoder release<br />
<br />
KASAN + DEBUG_KOBJECT_RELEASE reports a potential use-after-free in<br />
cxl_decoder_release() where it goes to reference its parent, a cxl_port,<br />
to free its id back to port->decoder_ida.<br />
<br />
BUG: KASAN: use-after-free in to_cxl_port+0x18/0x90 [cxl_core]<br />
Read of size 8 at addr ffff888119270908 by task kworker/35:2/379<br />
<br />
CPU: 35 PID: 379 Comm: kworker/35:2 Tainted: G OE 5.17.0-rc2+ #198<br />
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015<br />
Workqueue: events kobject_delayed_cleanup<br />
Call Trace:<br />
<br />
dump_stack_lvl+0x59/0x73<br />
print_address_description.constprop.0+0x1f/0x150<br />
? to_cxl_port+0x18/0x90 [cxl_core]<br />
kasan_report.cold+0x83/0xdf<br />
? to_cxl_port+0x18/0x90 [cxl_core]<br />
to_cxl_port+0x18/0x90 [cxl_core]<br />
cxl_decoder_release+0x2a/0x60 [cxl_core]<br />
device_release+0x5f/0x100<br />
kobject_cleanup+0x80/0x1c0<br />
<br />
The device core only guarantees parent lifetime until all children are<br />
unregistered. If a child needs a parent to complete its ->release()<br />
callback that child needs to hold a reference to extend the lifetime of<br />
the parent.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.14 (including) | 5.15.54 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 5.16.19 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.17 (including) | 5.17.2 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



