CVE-2025-38522

published 16 Aug 2025 · updated 11 May 2026

sched/ext: Prevent update_locked_rq() calls with NULL rq

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 237c43037b336e36a49eb9f2daac1c7719ec7f8b and Kernel e14fd98c6d66cb76694b12c05768e4f9e8c95664.

In the Linux kernel, the following vulnerability has been resolved: sched/ext: Prevent update_locked_rq() calls with NULL rq Avoid invoking update_locked_rq() when the runqueue (rq) pointer is NULL in the SCX_CALL_OP and SCX_CALL_OP_RET macros. Previously, calling update_locked_rq(NULL) with preemption enabled could trigger the following warning: BUG: using __this_cpu_write() in preemptible [00000000] This happens because __this_cpu_write() is unsafe to use in preemptible context. rq is NULL when an ops invoked from an unlocked context. In such cases, we don't need to store any rq, since the value should already be NULL (unlocked). Ensure that update_locked_rq() is only called when rq is non-NULL, preventing calling __this_cpu_write() on preemptible context.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.15, >=18853ba782bef65fc81ef2b3370382e5b479c5eb <237c43037b336e36a49eb9f2daac1c7719ec7f8b, >=18853ba782bef65fc81ef2b3370382e5b479c5eb <e14fd98c6d66cb76694b12c05768e4f9e8c95664237c43037b336e36a49eb9f2daac1c7719ec7f8b, e14fd98c6d66cb76694b12c05768e4f9e8c95664

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-38522 severity on Zeptric[![CVE-2025-38522](https://zeptric.io/badge/cve/CVE-2025-38522.svg)](https://zeptric.io/cve/CVE-2025-38522)