CVE-2025-21657: sched_ext: Replace rq_lock() to raw_spin_rq_lock() in scx_ops_bypass()

Published Jan 21, 2025
·
Updated

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

schedext: Replace rqlock() to rawspinrqlock() in scxopsbypass()

scxopsbypass() iterates all CPUs to re-enqueue all the scx tasks. For each CPU, it acquires a lock using rqlock() regardless of whether a CPU is offline or the CPU is currently running a task in a higher scheduler class (e.g., deadline). The rqlock() is supposed to be used for online CPUs, and the use of rqlock() may trigger an unnecessary warning in rqpinlock(). Therefore, replace rqlock() to rawspinrqlock() in scxopsbypass().

Without this change, we observe the following warning:

===== START ===== [ 6.615205] rq->balancecallback && rq->balancecallback != &balancepushcallback [ 6.615208] WARNING: CPU: 2 PID: 0 at kernel/sched/sched.h:1730 schedule+0x1130/0x1c90 ===== END =====

Affected Software

11 affected components
Linux Linux kernel
Linux Linux kernel>=6.12.1<6.12.10
Linux Linux kernel=6.12
Linux Linux kernel=6.12-rc6
Linux Linux kernel=6.12-rc7
Linux Linux kernel=6.13-rc1
Linux Linux kernel=6.13-rc2
Linux Linux kernel=6.13-rc3
Linux Linux kernel=6.13-rc4
Linux Linux kernel=6.13-rc5
Linux Linux kernel=6.13-rc6

Event History

Jan 21, 2025
CVE Published
via MITRE·12:18 PM
Data Sourced
via MITRE·12:18 PM
Description
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-21657?

CVE-2025-21657 has a medium severity rating as it affects the Linux kernel's task scheduling.

2

How do I fix CVE-2025-21657?

To fix CVE-2025-21657, update to the latest Linux kernel version where the vulnerability has been patched.

3

What versions of the Linux Kernel are affected by CVE-2025-21657?

CVE-2025-21657 affects multiple versions of the Linux Kernel prior to the fix being applied.

4

What is the impact of CVE-2025-21657?

The impact of CVE-2025-21657 relates to potential inefficiencies in task scheduling due to improper locking mechanisms.

5

Is CVE-2025-21657 actively exploited?

As of now, there has been no public indication that CVE-2025-21657 is actively being exploited.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203