# CVE-2024-42245: Revert "sched/fair: Make sure to try to detach at least one movable task"

> 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, NVD) `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.23% (percentile 9, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-08-07T15:14:31.019Z
- **Modified:** 2026-06-17T07:49:05.737Z

## Who should check

- Anyone running Linux \>= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, \< d467194018dd536fe6c65a2fd3aedfcdb1424903; \>= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, \< 1e116c18e32b035a2d1bd460800072c8bf96bc44; \>= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, \< 0fa6dcbfa2e2b97c1e6febbea561badf0931a38b; \>= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, \< 2feab2492deb2f14f9675dd6388e9e2bf669c27a
- Anyone running Linux 6.1

## Description

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

Revert "sched/fair: Make sure to try to detach at least one movable task"

This reverts commit b0defa7ae03ecf91b8bfd10ede430cff12fcbd06.

b0defa7ae03ec changed the load balancing logic to ignore env.max\_loop if
all tasks examined to that point were pinned. The goal of the patch was
to make it more likely to be able to detach a task buried in a long list
of pinned tasks. However, this has the unfortunate side effect of
creating an O(n) iteration in detach\_tasks(), as we now must fully
iterate every task on a cpu if all or most are pinned. Since this load
balance code is done with rq lock held, and often in softirq context, it
is very easy to trigger hard lockups. We observed such hard lockups with
a user who affined O(10k) threads to a single cpu.

When I discussed this with Vincent he initially suggested that we keep
the limit on the number of tasks to detach, but increase the number of
tasks we can search. However, after some back and forth on the mailing
list, he recommended we instead revert the original patch, as it seems
likely no one was actually getting hit by the original issue.

## Affected and fixed versions

- Linux: \>= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, \< d467194018dd536fe6c65a2fd3aedfcdb1424903; \>= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, \< 1e116c18e32b035a2d1bd460800072c8bf96bc44; \>= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, \< 0fa6dcbfa2e2b97c1e6febbea561badf0931a38b; \>= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, \< 2feab2492deb2f14f9675dd6388e9e2bf669c27a (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-42245.md
Affected: Linux >= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, < d467194018dd536fe6c65a2fd3aedfcdb1424903; >= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, < 1e116c18e32b035a2d1bd460800072c8bf96bc44; >= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, < 0fa6dcbfa2e2b97c1e6febbea561badf0931a38b; >= b0defa7ae03ecf91b8bfd10…
Fixed in: Linux 1e116c18e32b035a2d1bd460800072c8bf96bc44, Linux 0fa6dcbfa2e2b97c1e6febbea561badf0931a38b, Linux 2feab2492deb2f14f9675dd6388e9e2bf669c27a

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

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

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

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

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

Linux \>= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, \< d467194018dd536fe6c65a2fd3aedfcdb1424903; \>= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, \< 1e116c18e32b035a2d1bd460800072c8bf96bc44; \>= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, \< 0fa6dcbfa2e2b97c1e6febbea561badf0931a38b; \>= b0defa7ae03ecf91b8bfd10ede430cff12fcbd06, \< 2feab2492deb2f14f9675dd6388e9e2bf669c27a; Linux 6.1.

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

Yes. Fixed in Linux 1e116c18e32b035a2d1bd460800072c8bf96bc44, Linux 0fa6dcbfa2e2b97c1e6febbea561badf0931a38b, Linux 2feab2492deb2f14f9675dd6388e9e2bf669c27a. Upgrade Linux to 2feab2492deb2f14f9675dd6388e9e2bf669c27a or later.

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

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/d467194018dd536fe6c65a2fd3aedfcdb1424903>
- patch: <https://git.kernel.org/stable/c/1e116c18e32b035a2d1bd460800072c8bf96bc44>
- patch: <https://git.kernel.org/stable/c/0fa6dcbfa2e2b97c1e6febbea561badf0931a38b>
- patch: <https://git.kernel.org/stable/c/2feab2492deb2f14f9675dd6388e9e2bf669c27a>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.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-42245>

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