# CVE-2024-50061: i3c: master: cdns: Fix use after free vulnerability in cdns\_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.0
- **CVSS:** 7.0 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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.28% (percentile 13, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2024-10-21T19:39:50.415Z
- **Modified:** 2026-06-17T08:03:29.220Z

## Who should check

- Anyone running Linux \>= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, \< 2a21bad9964c91b34d65ba269914233720c0b1ce; \>= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, \< ea0256e393e0072e8c80fd941547807f0c28108b; \>= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, \< 687016d6a1efbfacdd2af913e2108de6b75a28d5; \>= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, \< 609366e7a06d035990df78f1562291c3bf0d4a12
- Anyone running Linux 5.0

## Description

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

i3c: master: cdns: Fix use after free vulnerability in cdns\_i3c\_master Driver Due to Race Condition

In the cdns\_i3c\_master\_probe function, &master-\>hj\_work is bound with
cdns\_i3c\_master\_hj. And cdns\_i3c\_master\_interrupt can call
cnds\_i3c\_master\_demux\_ibis function to start the work.

If we remove the module which will call cdns\_i3c\_master\_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

                                     \| cdns\_i3c\_master\_hj
cdns\_i3c\_master\_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 cdns\_i3c\_master\_remove.

## Affected and fixed versions

- Linux: \>= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, \< 2a21bad9964c91b34d65ba269914233720c0b1ce; \>= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, \< ea0256e393e0072e8c80fd941547807f0c28108b; \>= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, \< 687016d6a1efbfacdd2af913e2108de6b75a28d5; \>= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, \< 609366e7a06d035990df78f1562291c3bf0d4a12 (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- Upgrade Linux to 609366e7a06d035990df78f1562291c3bf0d4a12 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-50061.md
Affected: Linux >= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, < 2a21bad9964c91b34d65ba269914233720c0b1ce; >= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, < ea0256e393e0072e8c80fd941547807f0c28108b; >= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, < 687016d6a1efbfacdd2af913e2108de6b75a28d5; >= 3a379bbcea0af6280e1ca0d…
Fixed in: Linux 2a21bad9964c91b34d65ba269914233720c0b1ce, Linux 687016d6a1efbfacdd2af913e2108de6b75a28d5, Linux 609366e7a06d035990df78f1562291c3bf0d4a12

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-50061 being exploited?

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

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

High: CVSS 7.0 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, \< 2a21bad9964c91b34d65ba269914233720c0b1ce; \>= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, \< ea0256e393e0072e8c80fd941547807f0c28108b; \>= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, \< 687016d6a1efbfacdd2af913e2108de6b75a28d5; \>= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, \< 609366e7a06d035990df78f1562291c3bf0d4a12; Linux 5.0.

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

Yes. Fixed in Linux 2a21bad9964c91b34d65ba269914233720c0b1ce, Linux 687016d6a1efbfacdd2af913e2108de6b75a28d5, Linux 609366e7a06d035990df78f1562291c3bf0d4a12. Upgrade Linux to 609366e7a06d035990df78f1562291c3bf0d4a12 or later.

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

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/ea0256e393e0072e8c80fd941547807f0c28108b>
- patch: <https://git.kernel.org/stable/c/687016d6a1efbfacdd2af913e2108de6b75a28d5>
- patch: <https://git.kernel.org/stable/c/609366e7a06d035990df78f1562291c3bf0d4a12>
- other: <https://git.kernel.org/stable/c/2a21bad9964c91b34d65ba269914233720c0b1ce>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>

## 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-50061>

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