CVE-2026-31466·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: mm/huge_memory: fix folio isn't locked in softleaf_to_folio() On arm64 server, we found folio that get from migration entry isn't locked in softleaf_to_folio(). This issue triggers when mTHP splitting and zap_nonpresent_ptes() races, and the root cause is lack of memory barrier in softleaf_to_folio(). The race is as follows: CPU0 CPU1 deferred_split_scan() zap_nonpresent_ptes() lock folio split_folio() unmap_folio() change ptes to migration entries __split_folio_to_order() softleaf_to_folio() set flags(including PG_locked) for tail pages folio = pfn_folio(softleaf_to_pfn(entry)) smp_wmb() VM_WARN_ON_ONCE(!folio_test_locked(folio)) prep_compound_page() for tail pages In __split_folio_to_order(), smp_wmb() guarantees page flags of tail pages are visible before the tail page becomes non-compound. smp_wmb() should be paired with smp_rmb() in softleaf_to_folio(), which is missed. As a result, if zap_nonpresent_ptes() accesses migration entry that stores tail pfn, softleaf_to_folio() may see the updated compound_head of tail page before page->flags. This issue will trigger VM_WARN_ON_ONCE() in pfn_swap_entry_folio() because of the race between folio split and zap_nonpresent_ptes() leading to a folio incorrectly undergoing modification without a folio lock being held. This is a BUG_ON() before commit 93976a20345b ("mm: eliminate further swapops predicates"), which in merged in v6.19-rc1. To fix it, add missing smp_rmb() if the softleaf entry is migration entry in softleaf_to_folio() and softleaf_to_page(). [tujinjiang@huawei.com: update function name and comments]
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.11
- 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.12% — higher than 2% 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.
Affected versions
From: 6.19
Until: 6.19.11
Fixed in: 6.19.11
How to fix this CVE
Update your Linux kernel to version 6.19.11 or later to resolve this race condition vulnerability affecting folio locking during memory page splitting operations. This patch adds critical memory barriers (smp_rmb) that ensure proper synchronization between CPU cores when migration entries are processed, preventing data corruption when folio splitting races with memory unmapping.
sudo dnf check-update kernel && sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check kernel version with 'uname -r' and compare against 6.19.11 (affected range: 6.19 to 6.19.10)
- Step 2: Verify if your system uses transparent huge pages (mTHP) by checking 'cat /sys/kernel/mm/transparent_hugepage/hpage_pmd_size' — values above 0 indicate exposure
- Step 3: Search kernel logs for VM_WARN_ON_ONCE messages: 'sudo dmesg | grep -i "folio_test_locked"' or 'sudo journalctl -k | grep -i "VM_WARN"'
- Step 4: After patching, confirm the new kernel is loaded with 'uname -r' and verify it reports version 6.19.11 or later
FAQ
What is CVE-2026-31466?
This vulnerability is a race condition in the Linux kernel's memory management subsystem where page locking synchronization fails during concurrent folio splitting and memory unmapping operations, specifically affecting arm64 servers with transparent huge pages enabled. The missing memory barrier allows CPU cores to observe stale page state, causing the kernel to attempt modifying memory pages without proper lock acquisition.
Is CVE-2026-31466 being actively exploited?
No — this vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, it can trigger kernel warnings and potential data corruption under specific concurrent workload conditions.
What versions of Kernel are affected by CVE-2026-31466?
Linux kernel versions 6.19 through 6.19.10 are affected. The vulnerability was introduced in v6.19-rc1 and patched in version 6.19.11.
How do I check if my server is vulnerable to CVE-2026-31466?
Run 'uname -r' to check your kernel version — if it reports 6.19.x where x is less than 11, your system is vulnerable. Additionally, verify transparent huge pages are enabled with 'cat /sys/kernel/mm/transparent_hugepage/enabled' to confirm the attack surface is active.
Does Defensia detect CVE-2026-31466?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server and runs version 6.19 through 6.19.10, CVE-2026-31466 will appear in your dashboard with remediation steps and patch availability.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/426ee10711586617da869c8bb798214965337617
- https://git.kernel.org/stable/c/4c5e7f0fcd592801c9cc18f29f80fbee84eb8669
- https://git.kernel.org/stable/c/722cfaf6b31d31123439e67b5deac6b1261a3dea
- https://git.kernel.org/stable/c/7ad1997b9bc8032603df8f091761114479285769
- https://git.kernel.org/stable/c/7ddcf4a245c1c5a91fdd9698757e3d95179ffe41
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31466. Free for 1 server.
Get started free