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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-02-27T02:07:09.373Z
- **Modified:** 2026-11-25T19:17:26.010Z

## Who should check

- Anyone running Linux \>= c30508bb0b4b64780dc219190d54cab13cc3f8ef, \< 60d2fb033a999bb644f8e8606ff4a1b82de36c6f; \>= 1d08326020fba690cbb7b8f1b38ab4eab6745969, \< 9b0063098fcde17cd2894f2c96459b23388507ca; \>= 1d08326020fba690cbb7b8f1b38ab4eab6745969, \< fc84dd3c909a372c0d130f5f84c404717c17eed8; \>= 1d08326020fba690cbb7b8f1b38ab4eab6745969, \< b75439c945b94dd8a2b645355bdb56f948052601
- Anyone running Linux 6.10

## Description

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.

## Affected and fixed versions

- Linux: \>= c30508bb0b4b64780dc219190d54cab13cc3f8ef, \< 60d2fb033a999bb644f8e8606ff4a1b82de36c6f; \>= 1d08326020fba690cbb7b8f1b38ab4eab6745969, \< 9b0063098fcde17cd2894f2c96459b23388507ca; \>= 1d08326020fba690cbb7b8f1b38ab4eab6745969, \< fc84dd3c909a372c0d130f5f84c404717c17eed8; \>= 1d08326020fba690cbb7b8f1b38ab4eab6745969, \< b75439c945b94dd8a2b645355bdb56f948052601 (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-57984. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-57984.md
Affected: Linux >= c30508bb0b4b64780dc219190d54cab13cc3f8ef, < 60d2fb033a999bb644f8e8606ff4a1b82de36c6f; >= 1d08326020fba690cbb7b8f1b38ab4eab6745969, < 9b0063098fcde17cd2894f2c96459b23388507ca; >= 1d08326020fba690cbb7b8f1b38ab4eab6745969, < fc84dd3c909a372c0d130f5f84c404717c17eed8; >= 1d08326020fba690cbb7b8f…
Fixed in: Linux 60d2fb033a999bb644f8e8606ff4a1b82de36c6f, Linux 9b0063098fcde17cd2894f2c96459b23388507ca

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-57984 being exploited?

There is no confirmed exploitation: CVE-2024-57984 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-57984?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-57984?

Linux \>= c30508bb0b4b64780dc219190d54cab13cc3f8ef, \< 60d2fb033a999bb644f8e8606ff4a1b82de36c6f; \>= 1d08326020fba690cbb7b8f1b38ab4eab6745969, \< 9b0063098fcde17cd2894f2c96459b23388507ca; \>= 1d08326020fba690cbb7b8f1b38ab4eab6745969, \< fc84dd3c909a372c0d130f5f84c404717c17eed8; \>= 1d08326020fba690cbb7b8f1b38ab4eab6745969, \< b75439c945b94dd8a2b645355bdb56f948052601; Linux 6.10.

### Is there a fix for CVE-2024-57984?

Yes. Fixed in Linux 60d2fb033a999bb644f8e8606ff4a1b82de36c6f, Linux 9b0063098fcde17cd2894f2c96459b23388507ca. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-57984?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/60d2fb033a999bb644f8e8606ff4a1b82de36c6f>
- patch: <https://git.kernel.org/stable/c/9b0063098fcde17cd2894f2c96459b23388507ca>
- patch: <https://git.kernel.org/stable/c/fc84dd3c909a372c0d130f5f84c404717c17eed8>
- patch: <https://git.kernel.org/stable/c/b75439c945b94dd8a2b645355bdb56f948052601>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-57984>

HTML: <https://flawdb.com/CVE-2024-57984> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-57984>
