CVE-2025-38522

MEDIUM

Linux Kernel 6.15-6.15.7 - NULL Pointer Dereference in sched/ext update_locked_rq

Title source: llm
STIX 2.1

Description

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.

Scores

CVSS v3 5.5
EPSS 0.0013
EPSS Percentile 2.7%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-476
Status published
Products (10)
linux/Kernel 6.15.0 - 6.15.8linux
Linux/Linux < 6.15
Linux/Linux 18853ba782bef65fc81ef2b3370382e5b479c5eb - 237c43037b336e36a49eb9f2daac1c7719ec7f8b
Linux/Linux 18853ba782bef65fc81ef2b3370382e5b479c5eb - e14fd98c6d66cb76694b12c05768e4f9e8c95664
Linux/Linux 6.15
Linux/Linux 6.15.8 - 6.15.*
Linux/Linux 6.16
linux/linux_kernel 6.15 (2 CPE variants)
linux/linux_kernel 6.16 rc1 (6 CPE variants)
linux/linux_kernel 6.15.1 - 6.15.8
Published Aug 16, 2025
Tracked Since Feb 18, 2026