sched/ext: Prevent update_locked_rq() calls with NULL rq
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.15.8
- CVEs
- CVE-2025-38522
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 20:01 UTC · Revision 1
Source evidence
sched/ext: Prevent update_locked_rq() calls with NULL rq
core-osv · Original sourcePublished 16 Aug 2025, 11:12 UTC
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.
osv:CVE-2025-38522
Kernel
Fixed versions: 6.15.8
Complete source record
{
"id": "e96bbf61fee7576995e21d5697a87d93737b312ae7ddcf6e4da76c83e3a02bef",
"url": "https://osv.dev/vulnerability/CVE-2025-38522",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "sched/ext: Prevent update_locked_rq() calls with NULL rq",
"summary": "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.",
"evidence": "osv:CVE-2025-38522",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.15.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-38522",
"aliases": [
"CVE-2025-38522"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "18853ba782bef65fc81ef2b3370382e5b479c5eb"
},
{
"fixed": "237c43037b336e36a49eb9f2daac1c7719ec7f8b"
},
{
"fixed": "e14fd98c6d66cb76694b12c05768e4f9e8c95664"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38522.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.15.0"
},
{
"fixed": "6.15.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38522.json"
}
}
],
"modified": "2026-10-28T02:30:39.219679651Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/237c43037b336e36a49eb9f2daac1c7719ec7f8b",
"https://git.kernel.org/stable/c/e14fd98c6d66cb76694b12c05768e4f9e8c95664",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38522.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-38522",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38522.json"
}
},
"related_cves": [
{
"value": "CVE-2025-38522",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 506450,
"published_at": "2025-08-16T11:12:11.304+00:00"
}