CVE-2026-98385
published high CVSS 3.1 · 7.8sched/cache: Decouple sched_cache_group from mm to fix UAF
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxdf0d98475954d655571979aa061ecb07d7e00392 to < 852ecb6bc0bc0106f44f74ba3944524732486025 · df0d98475954d655571979aa061ecb07d7e00392 to < 28f9c0e0a0b94c5d3e1b634db545f6e1f94858c5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.2 (affected) · 0 to < 7.2 (unaffected · semver) · 7.2.9 through 7.2.* (unaffected · semver) · 7.3 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.2.11-1.1 | OPENSUSE-SU-2026:12165-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: sched/cache: Decouple sched_cache_group from mm to fix UAF Currently the sched cache grouping is by mm and the scheduling statistics sched_cache_stat lives in the mm structure. This ties the life cycle of scheduling stats with mm. In account_mm_sched(), the scheduling stats are accessed by task->mm->sc_stat. However, a task may be switching mm on one CPU when another CPU is running account_mm_sched(), and possibly accessing the old mm that was freed. This problem was found when running tests with KASAN by Hyunwoo: https://lore.kernel.org/lkml/apPb-Dr4nPYuHQOK@v4bel/ Instead of serializing the mm access by introducing extra acquisition of rq lock in the mm free path, extract sched_cache_stat from mm_struct, rename it as sched_cache_group and manage its life cycle apart from mm_struct with its own ref counting. This allows us in the next patch access sched_cache_group directly from task, and add a refcount on sched_cache_group when a task links to it. This prevents the use after free issue when accessing stale and released old mm and its sched cache stat a task switches to a new mm while account_mm_sched() is done elsewhere. The other benefit of this restructure is in the future, the grouping of tasks to a LLC would have the flexibility to be associated with a user defined grouping, or cgroup, cookie group, numa_group or others instead of just with a single mm address space. Rename sched_cache_stat to sched_cache_group and turn it into a refcounted object allocated from mm_struct. The mm_struct now holds a pointer (sched_cache_grp) to this object instead of embedding it.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - An unprivileged local write(2) to an attacker-created pipe reaches anon_pipe_write()->try_to_wake_up()->ttwu_queue()->enqueue_task_fair()->update_curr()->update_se()->account_mm_sched(), while the attacker's execveat(2) frees rq->curr's old mm. No protocol supplies the trigger. AC:L - On a qualifying multi-LLC SMP host, CONFIG_SCHED_CACHE and sysctl_sched_cache_user both default enabled. The attacker controls both race sides by repeatedly waking or updating its queued task and execveat()ing its pinned trampoline, and can groom the freed per-CPU slot. PR:L - user_check_sched_setscheduler() permits the same-owner SCHED_IDLE/lower-priority sched_setattr() used to force update_curr() without CAP_SYS_NICE; pipe creation, permitted CPU affinity, and execveat() of the attacker's memfd also require no capability. UI:N - The attacker creates the pipe and tasks, drives sched_setattr() or write(), and calls execveat() to replace and release its own mm; no other user must mount, open, or approve anything. S:U - account_mm_sched() and mm_destroy_sched() are host-kernel scheduler/mm code, and the demonstrated result is UID-0 execution under that same kernel authority, not a guest-to-host or IOMMU boundary crossing. C:H - After mm_destroy_sched() frees sc_stat.pcpu_sched, __update_mm_sched() accesses its reclaimed epoch and runtime. The demonstrated reclaim corrupts a futex reference and reaches UID 0 through pipe/page-cache manipulation, enabling unrestricted data reads. I:H - The stale pcpu_sched->epoch write changes a reclaimed futex per-CPU reference from 1 to 0; the demonstrated follow-on UAF decrements pipe_buffer.flags, enables page-cache overwrite of /usr/bin/newgrp, and executes as UID 0. A:H - __update_mm_sched() and pcpu_sched->runtime += delta_exec access freed per-CPU storage; if reclamation is not steered, these writes can corrupt reused kernel objects and cause an oops or panic.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | df0d98475954d655571979aa061ecb07d7e00392 to < 852ecb6bc0bc0106f44f74ba3944524732486025 (affected · git)df0d98475954d655571979aa061ecb07d7e00392 to < 28f9c0e0a0b94c5d3e1b634db545f6e1f94858c5 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.2 (affected)0 to < 7.2 (unaffected · semver)7.2.9 through 7.2.* (unaffected · semver)7.3 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
sched/cache: Decouple sched_cache_group from mm to fix UAF
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3ce199bfa175797b90eee4f305eb5cc5d0fdbe86ed200b97f59a501566f6af40
- Ingested
- 24 Oct 2026, 14:14:52 UTC
- Source record
- Official CVE record