CVE-2026-98385·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.2.9, 7.3
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.15% — higher than 3% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-98385 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.15%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
How to fix this CVE
Update your Linux kernel to version 7.2.9 or later on stable branches, or to mainline 7.3 and beyond. This vulnerability allows a use-after-free (UAF) condition when the kernel's scheduling cache statistics are accessed after the memory management structure is freed during task context switches. Apply the update through your distribution's package manager rather than compiling from source to ensure timely security patches.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version by running: uname -r
- Step 2: Compare the output against the patched versions (7.2.9+, 7.3+) for your kernel branch
- Step 3: Check dmesg logs for UAF-related KASAN warnings with: sudo dmesg | grep -i 'use-after-free\|sched_cache\|account_mm_sched'
- Step 4: After updating, reboot with: sudo reboot, then verify the new kernel is active with: uname -r
FAQ
What is CVE-2026-98385?
This vulnerability is a use-after-free (UAF) flaw in the Linux kernel's scheduling cache statistics mechanism. The issue occurs when a task switches memory contexts while another CPU attempts to access scheduling statistics from the old, freed memory structure, leading to potential kernel memory corruption.
Is CVE-2026-98385 being actively exploited?
No, this CVE is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available. However, it was discovered through KASAN testing and poses a real risk if triggered.
What versions of Kernel are affected by CVE-2026-98385?
All kernel versions prior to 7.2.9 on stable branches and prior to 7.3 on mainline are vulnerable. The exact lower bound is not specified, but the fix applies retroactively to stable kernel series.
How do I check if my server is vulnerable to CVE-2026-98385?
Run: uname -r to get your kernel version. If it is below 7.2.9 (for stable branch) or below 7.3 (for mainline), your system is vulnerable and requires an update.
Does Defensia detect CVE-2026-98385?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-98385 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-98385. Free for 1 server.
Get started free