# CVE-2024-49874: i3c: master: svc: Fix use after free vulnerability in svc\_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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-10-21T18:01:14.762Z
- **Modified:** 2026-08-05T11:40:17.116Z

## Who should check

- Anyone running Linux \>= 87e0f28eda36c7843523aa8dd0c5dab3331e9718, \< 56bddf543d4d7ddeff3f87b554ddacfdf086bffe; \>= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, \< 4ac637122930cc4ab7e2c22e364cf3aaf96b05b1; \>= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, \< 4318998892bf8fe99f97bea18c37ae7b685af75a; \>= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, \< 27b55724d3f781dd6e635e89dc6e2fd78fa81a00; \>= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, \< 61850725779709369c7e907ae8c7c75dc7cec4f3
- Anyone running Linux 6.4

## Description

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

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

In the svc\_i3c\_master\_probe function, &master-\>hj\_work is bound with
svc\_i3c\_master\_hj\_work, &master-\>ibi\_work is bound with
svc\_i3c\_master\_ibi\_work. And svc\_i3c\_master\_ibi\_work  can start the
hj\_work, svc\_i3c\_master\_irq\_handler can start the ibi\_work.

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

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

## Affected and fixed versions

- Linux: \>= 87e0f28eda36c7843523aa8dd0c5dab3331e9718, \< 56bddf543d4d7ddeff3f87b554ddacfdf086bffe; \>= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, \< 4ac637122930cc4ab7e2c22e364cf3aaf96b05b1; \>= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, \< 4318998892bf8fe99f97bea18c37ae7b685af75a; \>= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, \< 27b55724d3f781dd6e635e89dc6e2fd78fa81a00; \>= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, \< 61850725779709369c7e907ae8c7c75dc7cec4f3 (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 61850725779709369c7e907ae8c7c75dc7cec4f3 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-49874. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-49874.md
Affected: Linux >= 87e0f28eda36c7843523aa8dd0c5dab3331e9718, < 56bddf543d4d7ddeff3f87b554ddacfdf086bffe; >= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, < 4ac637122930cc4ab7e2c22e364cf3aaf96b05b1; >= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, < 4318998892bf8fe99f97bea18c37ae7b685af75a; >= 0f74f8b6675cc36d689abb4…
Fixed in: Linux 56bddf543d4d7ddeff3f87b554ddacfdf086bffe, Linux 4ac637122930cc4ab7e2c22e364cf3aaf96b05b1, Linux 4318998892bf8fe99f97bea18c37ae7b685af75a, Linux 27b55724d3f781dd6e635e89dc6e2fd78fa81a00, Linux 61850725779709369c7e907ae8c7c75dc7cec4f3

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

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

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

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

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

Linux \>= 87e0f28eda36c7843523aa8dd0c5dab3331e9718, \< 56bddf543d4d7ddeff3f87b554ddacfdf086bffe; \>= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, \< 4ac637122930cc4ab7e2c22e364cf3aaf96b05b1; \>= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, \< 4318998892bf8fe99f97bea18c37ae7b685af75a; \>= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, \< 27b55724d3f781dd6e635e89dc6e2fd78fa81a00; \>= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, \< 61850725779709369c7e907ae8c7c75dc7cec4f3; Linux 6.4.

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

Yes. Fixed in Linux 56bddf543d4d7ddeff3f87b554ddacfdf086bffe, Linux 4ac637122930cc4ab7e2c22e364cf3aaf96b05b1, Linux 4318998892bf8fe99f97bea18c37ae7b685af75a, Linux 27b55724d3f781dd6e635e89dc6e2fd78fa81a00, Linux 61850725779709369c7e907ae8c7c75dc7cec4f3. Upgrade Linux to 61850725779709369c7e907ae8c7c75dc7cec4f3 or later.

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

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/4ac637122930cc4ab7e2c22e364cf3aaf96b05b1>
- patch: <https://git.kernel.org/stable/c/4318998892bf8fe99f97bea18c37ae7b685af75a>
- patch: <https://git.kernel.org/stable/c/27b55724d3f781dd6e635e89dc6e2fd78fa81a00>
- patch: <https://git.kernel.org/stable/c/61850725779709369c7e907ae8c7c75dc7cec4f3>
- other: <https://git.kernel.org/stable/c/56bddf543d4d7ddeff3f87b554ddacfdf086bffe>

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

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