CVE-2024-42245 Details
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.
A denial-of-service vulnerability has been identified in the Linux kernel's load balancing logic within the task scheduler. This issue arises from a change introduced in a previous commit, which aimed to improve the detachment of tasks from CPUs by allowing the scheduler to ignore certain limits when all tasks were pinned. However, this modification inadvertently created an O(n) performance issue by requiring the scheduler to iterate through all tasks on a CPU, especially when a large number of threads were affined to a single core. This behavior, combined with the context in which it occurs, can easily lead to hard lockups, disrupting system operations.
Users can upgrade to the latest version of the Linux kernel to address this vulnerability. For Debian 11, the updated kernel version 6.1.119-1~deb11u1 is available. Instructions for installing this update can be found in the Debian LTS advisory DLA-4008-1.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 10, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-667 | Improper Locking | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.1, < 6.1.100 >= 6.2, < 6.6.41 >= 6.7, < 6.9.10 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Aug 8, 2024 | Initial Analysis | [email protected] |
| Aug 7, 2024 | New CVE Received | kernel.org |