CVE-2025-21657
Last modified
CVE-2025-21657 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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(). EPSS estimates a 0.17% chance of exploitation in the next 30 days.
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 =====
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.12.1, < 6.12.10 | — |
| Linux | Linux Kernel | 6.12 | — |
| Linux | Linux Kernel | 6.13 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-21657?
How severe is CVE-2025-21657?
How do I fix CVE-2025-21657?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-21651In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2025-21652In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-21653In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21654In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21655In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2025-21656In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21658In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21659In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-2166The CM FAQ – Simplify support with an intuitive FAQ managem…6.1
- CVE-2025-21660In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21661In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21662In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-21657?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
