CVE-2024-50061
Severity CVSS v4.0:
Pending analysis
Type:
CWE-416
Use After Free
Publication date:
21/10/2024
Last modified:
03/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
i3c: master: cdns: Fix use after free vulnerability in cdns_i3c_master Driver Due to Race Condition<br />
<br />
In the cdns_i3c_master_probe function, &master->hj_work is bound with<br />
cdns_i3c_master_hj. And cdns_i3c_master_interrupt can call<br />
cnds_i3c_master_demux_ibis function to start the work.<br />
<br />
If we remove the module which will call cdns_i3c_master_remove to<br />
make cleanup, it will free master->base through i3c_master_unregister<br />
while the work mentioned above will be used. The sequence of operations<br />
that may lead to a UAF bug is as follows:<br />
<br />
CPU0 CPU1<br />
<br />
| cdns_i3c_master_hj<br />
cdns_i3c_master_remove |<br />
i3c_master_unregister(&master->base) |<br />
device_unregister(&master->dev) |<br />
device_release |<br />
//free master->base |<br />
| i3c_master_do_daa(&master->base)<br />
| //use master->base<br />
<br />
Fix it by ensuring that the work is canceled before proceeding with<br />
the cleanup in cdns_i3c_master_remove.
Impact
Base Score 3.x
7.00
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.6.57 (excluding) | |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.11.4 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/2a21bad9964c91b34d65ba269914233720c0b1ce
- https://git.kernel.org/stable/c/609366e7a06d035990df78f1562291c3bf0d4a12
- https://git.kernel.org/stable/c/687016d6a1efbfacdd2af913e2108de6b75a28d5
- https://git.kernel.org/stable/c/ea0256e393e0072e8c80fd941547807f0c28108b
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html



