SecurityContext

CVE-2025-21657: Linux Kernel - Race Condition

  • Cve: CVE-2025-21657
  • Name: Linux Kernel - Race Condition
  • 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 =====
  • Impact: Potential for race conditions and unnecessary warnings, which could lead to stability issues or information disclosure.
  • Remediation: Replace rq_lock() with raw_spin_rq_lock() in scx_ops_bypass() to fix the issue.
  • Vulnerability type: race_condition
  • Vulnerability impact: race_condition, information_disclosure
  • Requirement type: logged_in
  • Requirements: Local kernel access required
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00177
  • Epss percentile: 0.07219
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2025-01-21T13:15:09Z
  • Age in days: 672
  • Modified at: 2026-06-17T08:43:56Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-21657
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
NVD-CWE-noinfo—

References

UrlSourceTags
https://git.kernel.org/stable/c/6268d5bc10354fc2ab8d44a0cd3b042d49a0417envdPatch
https://git.kernel.org/stable/c/d9e446dd63cee7161717a6a8414ba9c6435af764nvdPatch

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel= 6.12 rc7; = 6.13 rc1; = 6.13 rc2; = 6.13 rc3; = 6.13 rc4; = 6.13 rc5; = 6.13 rc6; >= 6.12.1, < 6.12.10; = 6.12; = 6.12 rc6nonvd/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports