# CVE-2024-35989: dmaengine: idxd: Fix oops during rmmod on single-CPU platforms

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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)
- **Published:** 2024-05-20T09:47:55.084Z
- **Modified:** 2026-06-17T07:35:53.550Z

## Who should check

- Anyone running Linux \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< 9edd3aa34d50f27b97be30b2ba4a6af0945ff56b; \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< 023b6390a15a98f9c3aa5e7da78d485d5384a08e; \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< f976eca36cdf94e32fa4f865db0e7c427c9aa33c; \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< 47533176fdcef17b114a6f688bc872901c1ec6bb; \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< f221033f5c24659dc6ad7e5cf18fb1b075f4a8be
- Anyone running Linux 5.13

## Description

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

dmaengine: idxd: Fix oops during rmmod on single-CPU platforms

During the removal of the idxd driver, registered offline callback is
invoked as part of the clean up process. However, on systems with only
one CPU online, no valid target is available to migrate the
perf context, resulting in a kernel oops:

    BUG: unable to handle page fault for address: 000000000002a2b8
    \#PF: supervisor write access in kernel mode
    \#PF: error\_code(0x0002) - not-present page
    PGD 1470e1067 P4D 0
    Oops: 0002 \[\#1\] PREEMPT SMP NOPTI
    CPU: 0 PID: 20 Comm: cpuhp/0 Not tainted 6.8.0-rc6-dsa+ \#57
    Hardware name: Intel Corporation AvenueCity/AvenueCity, BIOS BHSDCRB1.86B.2492.D03.2307181620 07/18/2023
    RIP: 0010:mutex\_lock+0x2e/0x50
    ...
    Call Trace:
    \<TASK\>
    \_\_die+0x24/0x70
    page\_fault\_oops+0x82/0x160
    do\_user\_addr\_fault+0x65/0x6b0
    \_\_pfx\_\_\_rdmsr\_safe\_on\_cpu+0x10/0x10
    exc\_page\_fault+0x7d/0x170
    asm\_exc\_page\_fault+0x26/0x30
    mutex\_lock+0x2e/0x50
    mutex\_lock+0x1e/0x50
    perf\_pmu\_migrate\_context+0x87/0x1f0
    perf\_event\_cpu\_offline+0x76/0x90 \[idxd\]
    cpuhp\_invoke\_callback+0xa2/0x4f0
    \_\_pfx\_perf\_event\_cpu\_offline+0x10/0x10 \[idxd\]
    cpuhp\_thread\_fun+0x98/0x150
    smpboot\_thread\_fn+0x27/0x260
    smpboot\_thread\_fn+0x1af/0x260
    \_\_pfx\_smpboot\_thread\_fn+0x10/0x10
    kthread+0x103/0x140
    \_\_pfx\_kthread+0x10/0x10
    ret\_from\_fork+0x31/0x50
    \_\_pfx\_kthread+0x10/0x10
    ret\_from\_fork\_asm+0x1b/0x30
    \<TASK\>

Fix the issue by preventing the migration of the perf context to an
invalid target.

## Affected and fixed versions

- Linux: \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< 9edd3aa34d50f27b97be30b2ba4a6af0945ff56b; \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< 023b6390a15a98f9c3aa5e7da78d485d5384a08e; \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< f976eca36cdf94e32fa4f865db0e7c427c9aa33c; \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< 47533176fdcef17b114a6f688bc872901c1ec6bb; \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< f221033f5c24659dc6ad7e5cf18fb1b075f4a8be (cvelist)
- Linux: 5.13 (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-35989. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35989.md
Affected: Linux >= 81dd4d4d6178306ab31db91bdc7353d485bdafce, < 9edd3aa34d50f27b97be30b2ba4a6af0945ff56b; >= 81dd4d4d6178306ab31db91bdc7353d485bdafce, < 023b6390a15a98f9c3aa5e7da78d485d5384a08e; >= 81dd4d4d6178306ab31db91bdc7353d485bdafce, < f976eca36cdf94e32fa4f865db0e7c427c9aa33c; >= 81dd4d4d6178306ab31db91…
Fixed in: Linux 9edd3aa34d50f27b97be30b2ba4a6af0945ff56b, Linux 023b6390a15a98f9c3aa5e7da78d485d5384a08e, Linux 47533176fdcef17b114a6f688bc872901c1ec6bb

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

There is no confirmed exploitation: CVE-2024-35989 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-35989?

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

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

Linux \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< 9edd3aa34d50f27b97be30b2ba4a6af0945ff56b; \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< 023b6390a15a98f9c3aa5e7da78d485d5384a08e; \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< f976eca36cdf94e32fa4f865db0e7c427c9aa33c; \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< 47533176fdcef17b114a6f688bc872901c1ec6bb; \>= 81dd4d4d6178306ab31db91bdc7353d485bdafce, \< f221033f5c24659dc6ad7e5cf18fb1b075f4a8be; Linux 5.13.

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

Yes. Fixed in Linux 9edd3aa34d50f27b97be30b2ba4a6af0945ff56b, Linux 023b6390a15a98f9c3aa5e7da78d485d5384a08e, Linux 47533176fdcef17b114a6f688bc872901c1ec6bb. No fix listed yet: follow the vendor advisory.

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

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/9edd3aa34d50f27b97be30b2ba4a6af0945ff56b>
- patch: <https://git.kernel.org/stable/c/023b6390a15a98f9c3aa5e7da78d485d5384a08e>
- patch: <https://git.kernel.org/stable/c/f976eca36cdf94e32fa4f865db0e7c427c9aa33c>
- patch: <https://git.kernel.org/stable/c/47533176fdcef17b114a6f688bc872901c1ec6bb>
- patch: <https://git.kernel.org/stable/c/f221033f5c24659dc6ad7e5cf18fb1b075f4a8be>

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

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