CVE-2026-31452·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ext4: convert inline data to extents when truncate exceeds inline size Add a check in ext4_setattr() to convert files from inline data storage to extent-based storage when truncate() grows the file size beyond the inline capacity. This prevents the filesystem from entering an inconsistent state where the inline data flag is set but the file size exceeds what can be stored inline. Without this fix, the following sequence causes a kernel BUG_ON(): 1. Mount filesystem with inode that has inline flag set and small size 2. truncate(file, 50MB) - grows size but inline flag remains set 3. sendfile() attempts to write data 4. ext4_write_inline_data() hits BUG_ON(write_size > inline_capacity) The crash occurs because ext4_write_inline_data() expects inline storage to accommodate the write, but the actual inline capacity (~60 bytes for i_block + ~96 bytes for xattrs) is far smaller than the file size and write request. The fix checks if the new size from setattr exceeds the inode's actual inline capacity (EXT4_I(inode)->i_inline_size) and converts the file to extent-based storage before proceeding with the size change. This addresses the root cause by ensuring the inline data flag and file size remain consistent during truncate operations.
- Severity
- high
- 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.18% — 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-31452 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.18%, 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: 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 ext4 filesystem vulnerability that can cause kernel crashes during file truncation operations. Systems running kernel versions 6.19 through 6.19.10 should prioritize this update as it prevents data inconsistency when truncating files with inline data storage. Apply the update through your distribution's package manager and reboot the system to activate the patched kernel.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version by running: uname -r | grep -E '^6\.19\.(0-10)' to identify if you are running a vulnerable version
- Verify ext4 filesystem usage with: mount | grep ext4 to confirm if ext4 filesystems are active on the system
- Search system logs for kernel BUG_ON crashes related to ext4 inline data with: sudo grep -i 'BUG_ON\|ext4_write_inline_data' /var/log/kern.log or journalctl -k | grep -i inline
- After applying the patch, confirm the new kernel version is running: uname -r and verify the version is 6.19.11 or later
FAQ
What is CVE-2026-31452?
This vulnerability exists in the Linux kernel's ext4 filesystem where a mismatch between file size metadata and inline data storage capacity can trigger a kernel panic. When a file is truncated to a size exceeding inline storage capacity while the inline data flag remains set, subsequent write operations cause a kernel crash.
Is CVE-2026-31452 being actively exploited?
No, this vulnerability is not currently being actively exploited in the wild according to CISA data, and no public exploits are available. However, it can be triggered through normal filesystem operations by any local user with file access.
What versions of Kernel are affected by CVE-2026-31452?
Linux kernel versions 6.19 through 6.19.10 are vulnerable. The fix is included in kernel version 6.19.11 and later releases.
How do I check if my server is vulnerable to CVE-2026-31452?
Run 'uname -r' to get your kernel version and check if it falls within 6.19.0 to 6.19.10 range. Additionally, confirm ext4 usage with 'mount | grep ext4' to determine if the vulnerable filesystem is in active use.
Does Defensia detect CVE-2026-31452?
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-31452 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/07c1a31af18290054da3d18221b8bf58983c5d3a
- https://git.kernel.org/stable/c/110d7ef602659ce4d7947c5480f7ca2779696aaf
- https://git.kernel.org/stable/c/699bac4d4c951974d55b045c983d1de777215949
- https://git.kernel.org/stable/c/7920dcc571cef3d8aa9ee109c136125d61d41669
- https://git.kernel.org/stable/c/93cb2d103e5c707de0f7ad58a39b7f0fddc27aa6
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31452. Free for 1 server.
Get started free