# CVE-2024-57984: i3c: dw: Fix use-after-free in dw\_i3c\_master driver due to race condition

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-02-27 · Modified: 2026-11-25
- Aliases: UBUNTU-CVE-2024-57984, DEBIAN-CVE-2024-57984
- Record: https://cvemate.com/vulnerability/CVE-2024-57984 · JSON: https://cvemate.com/vulnerability/CVE-2024-57984/json

## Description

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

i3c: dw: Fix use-after-free in dw_i3c_master driver due to race condition

In dw_i3c_common_probe, &master->hj_work is bound with
dw_i3c_hj_work. And dw_i3c_master_irq_handler can call
dw_i3c_master_irq_handle_ibis function to start the work.

If we remove the module which will call dw_i3c_common_remove to
make cleanup, it will free master->base through i3c_master_unregister
while the work mentioned above will be used. The sequence of operations
that may lead to a UAF bug is as follows:

CPU0                                      CPU1

                                     | dw_i3c_hj_work
dw_i3c_common_remove                 |
i3c_master_unregister(&master->base) |
device_unregister(&master->dev)      |
device_release                       |
//free master->base                  |
                                     | i3c_master_do_daa(&master->base)
                                     | //use master->base

Fix it by ensuring that the work is canceled before proceeding with
the cleanup in dw_i3c_common_remove.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.233%, percentile 15.111%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 87)

- debian linux (Debian): All versions (No fix recorded) \| \< 6.12.13-1
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-6.11 (Ubuntu): \< 6.11.0-1015.15~24.04.1
- ubuntu linux-azure-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-edge (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/60d2fb033a999bb644f8e8606ff4a1b82de36c6f>
- <https://git.kernel.org/stable/c/9b0063098fcde17cd2894f2c96459b23388507ca>
- <https://git.kernel.org/stable/c/fc84dd3c909a372c0d130f5f84c404717c17eed8>
- <https://git.kernel.org/stable/c/b75439c945b94dd8a2b645355bdb56f948052601>
- <https://ubuntu.com/security/CVE-2024-57984>
- <https://www.cve.org/CVERecord?id=CVE-2024-57984>
- <https://git.kernel.org/linus/b75439c945b94dd8a2b645355bdb56f948052601>
- <https://ubuntu.com/security/notices/USN-7521-1>
- <https://ubuntu.com/security/notices/USN-7521-2>
- <https://ubuntu.com/security/notices/USN-7521-3>
- <https://ubuntu.com/security/notices/USN-7651-1>
- <https://ubuntu.com/security/notices/USN-7652-1>
- <https://ubuntu.com/security/notices/USN-7653-1>
- <https://ubuntu.com/security/notices/USN-7651-2>
- <https://ubuntu.com/security/notices/USN-7651-3>
- <https://ubuntu.com/security/notices/USN-7651-4>
- <https://ubuntu.com/security/notices/USN-7651-5>
- <https://ubuntu.com/security/notices/USN-7651-6>
- <https://ubuntu.com/security/notices/USN-7737-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-57984>

---

Data as of 2026-12-05T05:33:41.234Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
