CVE-2026-63950·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: mm/rmap: initialize nr_pages to 1 at loop start in try_to_unmap_one Initialize nr_pages to 1 at the start of each loop iteration, like folio_referenced_one() does. Without this, nr_pages computed by a previous folio_unmap_pte_batch() call can be reused on a later iteration that does not run folio_unmap_pte_batch() again. mmap a 64K large folio with MAP_ANONYMOUS | MAP_DROPPABLE, then call madvise(MADV_FREE), then make the last page device-exclusive via HMM_DMIRROR_EXCLUSIVE. Trigger node reclaim through sysfs. Now, in try_to_unmap_one(), we will first clear the first 15 out of 16 entries mapping the lazyfree folio. This will set nr_pages to 15. In the next pvmw walk, this nr_pages gets reused on a device-exclusive pte, thus potentially corrupting folio refcount/mapcount. At the moment, I have a userspace program which can make the kernel spit out a trace, but the blow up is in folio_referenced_one(), because there are existing bugs in the interaction between device-private and rmap (which too I am investigating). I did a one liner kernel change to avoid going into folio_referenced_one(), and the kernel blows up at folio_remove_rmap_ptes in try_to_unmap_one which is what I wanted. Note that the bug is there not since file folio batching but lazyfree folio batching, since device-exclusive only works for anonymous folios. Userspace visible effect is simply kernel crashing somewhere due to refcount/mapcount corruption.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.0.12
- 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.17% — higher than 7% 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-63950 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.17%, 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.
Affected versions
From: 6.19
Until: 7.0.12
Fixed in: 7.0.12
How to fix this CVE
Update your Linux kernel to version 7.0.12 or later to resolve a memory management vulnerability that can cause kernel crashes due to refcount corruption. This vulnerability affects the page unmapping logic and primarily impacts systems using anonymous folios with memory reclaim operations. Reboot your system after applying the kernel update to ensure the patched version is active.
sudo dnf check-update kernel && sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check current kernel version with `uname -r` and compare against the affected range (6.19 to 7.0.11)
- Step 2: Verify if your workload uses anonymous folios with MAP_DROPPABLE or executes madvise(MADV_FREE) by reviewing application source code or strace output
- Step 3: Search system logs for kernel panic or BUG messages related to folio refcount/mapcount corruption: `sudo journalctl -b -p err | grep -i 'refcount\|mapcount\|folio'`
- Step 4: After patching, confirm kernel version is 7.0.12 or higher with `uname -r` and verify no recent crashes in `sudo dmesg | tail -50`
FAQ
What is CVE-2026-63950?
This vulnerability is a kernel memory management flaw where the nr_pages variable is not properly reset during folio unmapping iterations, causing stale batch counts to be applied to incompatible page types and corrupting memory reference counts. This can lead to kernel crashes when the system performs memory reclamation on workloads using lazy-free anonymous memory pages.
Is CVE-2026-63950 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available. However, it can be triggered reliably through specific memory operations (mmap with MAP_ANONYMOUS | MAP_DROPPABLE followed by madvise MADV_FREE), making it a priority for systems running affected workloads.
What versions of Kernel are affected by CVE-2026-63950?
Linux kernel versions 6.19 through 7.0.11 are vulnerable. Kernel 7.0.12 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2026-63950?
Run `uname -r` to display your kernel version. If the output shows a version between 6.19 and 7.0.11 (inclusive), your system is vulnerable. Verify the exact patch level by checking `cat /proc/version`.
Does Defensia detect CVE-2026-63950?
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-63950 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-63950. Free for 1 server.
Get started free