CVE-2025-21657
sched_ext: Replace rq_lock() to raw_spin_rq_lock() in scx_ops_bypass()
Mitigation
- Upgrade Linux to 6268d5bc10354fc2ab8d44a0cd3b042d49a0417e or later.
Who should check
- Anyone running Linux >= 0e7ffff1b8117b05635c87d3c9099f6aa9c9b689, < d9e446dd63cee7161717a6a8414ba9c6435af764; >= 0e7ffff1b8117b05635c87d3c9099f6aa9c9b689, < 6268d5bc10354fc2ab8d44a0cd3b042d49a0417e
- Anyone running Linux 6.12
Vulnerability facts
- Affected
- Linux >= 0e7ffff1b8117b05635c87d3c9099f6aa9c9b689, < d9e446dd63cee7161717a6a8414ba9c6435af764; >= 0e7ffff1b8117b05635c87d3c9099f6aa9c9b689, < 6268d5bc10354fc2ab8d44a0cd3b042d49a0417e; Linux 6.12
- Fixed in
- Linux 6268d5bc10354fc2ab8d44a0cd3b042d49a0417e
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.26% chance of exploitation in 30 days (percentile 11, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: sched_ext: Replace rq_lock() to raw_spin_rq_lock() in scx_ops_bypass() scx_ops_bypass() iterates all CPUs to re-enqueue all the scx tasks. For each CPU, it acquires a lock using rq_lock() regardless of whether a CPU is offline or the CPU is currently running a task in a higher scheduler class (e.g., deadline). The rq_lock() is supposed to be used for online CPUs, and the use of rq_lock() may trigger an unnecessary warning in rq_pin_lock(). Therefore, replace rq_lock() to raw_spin_rq_lock() in scx_ops_bypass(). Without this change, we observe the following warning: ===== START ===== [ 6.615205] rq->balance_callback && rq->balance_callback != &balance_push_callback [ 6.615208] WARNING: CPU: 2 PID: 0 at kernel/sched/sched.h:1730 __schedule+0x1130/0x1c90 ===== END =====
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-21657. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-21657.md Affected: Linux >= 0e7ffff1b8117b05635c87d3c9099f6aa9c9b689, < d9e446dd63cee7161717a6a8414ba9c6435af764; >= 0e7ffff1b8117b05635c87d3c9099f6aa9c9b689, < 6268d5bc10354fc2ab8d44a0cd3b042d49a0417e; Linux 6.12 Fixed in: Linux 6268d5bc10354fc2ab8d44a0cd3b042d49a0417e 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.
References
FAQ
Is CVE-2025-21657 being exploited?
There is no confirmed exploitation: CVE-2025-21657 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-21657?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-21657?
Linux >= 0e7ffff1b8117b05635c87d3c9099f6aa9c9b689, < d9e446dd63cee7161717a6a8414ba9c6435af764; >= 0e7ffff1b8117b05635c87d3c9099f6aa9c9b689, < 6268d5bc10354fc2ab8d44a0cd3b042d49a0417e; Linux 6.12.
Is there a fix for CVE-2025-21657?
Yes. Fixed in Linux 6268d5bc10354fc2ab8d44a0cd3b042d49a0417e. Upgrade Linux to 6268d5bc10354fc2ab8d44a0cd3b042d49a0417e or later.
How do I check if I'm affected by CVE-2025-21657?
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.