CVE-2025-21815·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: mm/compaction: fix UBSAN shift-out-of-bounds warning syzkaller reported a UBSAN shift-out-of-bounds warning of (1UL << order) in isolate_freepages_block(). The bogus compound_order can be any value because it is union with flags. Add back the MAX_PAGE_ORDER check to fix the warning.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.13.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.1% — higher than 9% 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-2025-21815 scores 7.1 on CVSS, so a successful attack would be serious — but at <0.1%, 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.13
Until: 6.13.3
Fixed in: 6.13.3
How to fix this CVE
Update your Linux kernel to version 6.13.3 or later to resolve a memory management bug that can cause kernel panics and system instability. This fix addresses an unsafe bit-shift operation in the page compaction routine that occurs when the kernel misinterprets page metadata, resulting in out-of-bounds memory access. Systems running kernel versions 6.13.0 through 6.13.2 should prioritize this update to restore stability and prevent denial-of-service conditions.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your installed kernel version with: uname -r
- Verify if you're running a vulnerable version by confirming it falls between 6.13.0 and 6.13.2 inclusive
- Search kernel logs for UBSAN warnings related to shift operations: sudo dmesg | grep -i 'shift\|ubsan\|out.of.bounds'
- After patching, confirm the update was applied by running uname -r again and verifying version 6.13.3 or later is installed
FAQ
What is CVE-2025-21815?
This vulnerability is a kernel memory management bug where the page compaction routine performs an unsafe bit-shift operation on potentially invalid page metadata, leading to out-of-bounds memory access that can crash the system.
Is CVE-2025-21815 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are available. However, it can still be triggered locally by an unprivileged user.
What versions of Kernel are affected by CVE-2025-21815?
Linux kernel versions 6.13.0, 6.13.1, and 6.13.2 are vulnerable. The fix is available in kernel 6.13.3 and all subsequent releases.
How do I check if my server is vulnerable to CVE-2025-21815?
Run 'uname -r' and check if the output shows version 6.13.0, 6.13.1, or 6.13.2. If so, your system is vulnerable and requires immediate kernel update.
Does Defensia detect CVE-2025-21815?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2025-21815 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-2025-21815. Free for 1 server.
Get started free