CVE-2026-45985·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ext4: don't set EXT4_GET_BLOCKS_CONVERT when splitting before submitting I/O When allocating blocks during within-EOF DIO and writeback with dioread_nolock enabled, EXT4_GET_BLOCKS_PRE_IO was set to split an existing large unwritten extent. However, EXT4_GET_BLOCKS_CONVERT was set when calling ext4_split_convert_extents(), which may potentially result in stale data issues. Assume we have an unwritten extent, and then DIO writes the second half. [UUUUUUUUUUUUUUUU] on-disk extent U: unwritten extent [UUUUUUUUUUUUUUUU] extent status tree |<- ->| ----> dio write this range First, ext4_iomap_alloc() call ext4_map_blocks() with EXT4_GET_BLOCKS_PRE_IO, EXT4_GET_BLOCKS_UNWRIT_EXT and EXT4_GET_BLOCKS_CREATE flags set. ext4_map_blocks() find this extent and call ext4_split_convert_extents() with EXT4_GET_BLOCKS_CONVERT and the above flags set. Then, ext4_split_convert_extents() calls ext4_split_extent() with EXT4_EXT_MAY_ZEROOUT, EXT4_EXT_MARK_UNWRIT2 and EXT4_EXT_DATA_VALID2 flags set, and it calls ext4_split_extent_at() to split the second half with EXT4_EXT_DATA_VALID2, EXT4_EXT_MARK_UNWRIT1, EXT4_EXT_MAY_ZEROOUT and EXT4_EXT_MARK_UNWRIT2 flags set. However, ext4_split_extent_at() failed to insert extent since a temporary lack -ENOSPC. It zeroes out the first half but convert the entire on-disk extent to written since the EXT4_EXT_DATA_VALID2 flag set, but left the second half as unwritten in the extent status tree. [0000000000SSSSSS] data S: stale data, 0: zeroed [WWWWWWWWWWWWWWWW] on-disk extent W: written extent [WWWWWWWWWWUUUUUU] extent status tree Finally, if the DIO failed to write data to the disk, the stale data in the second half will be exposed once the cached extent entry is gone. Fix this issue by not passing EXT4_GET_BLOCKS_CONVERT when splitting an unwritten extent before submitting I/O, and make ext4_split_convert_extents() to zero out the entire extent range to zero for this case, and also mark the extent in the extent status tree for consistency.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.4
- 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.4
Fixed in: 6.19.4
How to fix this CVE
Update your Linux kernel to version 6.19.4 or later to resolve a data consistency issue in the ext4 filesystem that could expose stale data under specific conditions involving direct I/O writes with dioread_nolock enabled. This fix prevents incorrect extent conversion during block allocation operations that could leave cached data inconsistent between the on-disk state and the extent status tree.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check kernel version with: uname -r — confirm if version is between 6.19 and 6.19.3 (vulnerable range)
- Step 2: Verify ext4 filesystem in use with: mount | grep -i ext4 — identify if ext4 partitions are mounted
- Step 3: Check if dioread_nolock is enabled with: cat /proc/mounts | grep dioread_nolock — this option enables the vulnerable code path
- Step 4: Verify the fix by upgrading to 6.19.4+ and confirming with: uname -r — should show version 6.19.4 or higher
FAQ
What is CVE-2026-45985?
This vulnerability affects the ext4 filesystem's extent splitting logic during direct I/O operations with dioread_nolock enabled, where improper extent conversion flags could cause stale data to persist on disk if I/O operations fail, creating a data consistency issue.
Is CVE-2026-45985 being actively exploited?
No, there is no evidence of active exploitation in the wild, and no public exploit code is available. This is primarily a data consistency vulnerability that requires specific filesystem conditions to trigger.
What versions of Kernel are affected by CVE-2026-45985?
Linux kernel versions 6.19 through 6.19.3 are affected. The vulnerability was fixed in kernel 6.19.4 and later stable releases.
How do I check if my server is vulnerable to CVE-2026-45985?
Run: uname -r — if the output shows a version between 6.19 and 6.19.3, and ext4 is in use with dioread_nolock mount option, your system is vulnerable. Verify with: cat /proc/mounts | grep ext4.
Does Defensia detect CVE-2026-45985?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2026-45985 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/2698731d25823267c29190cb578da9296a0c0d7b
- https://git.kernel.org/stable/c/2920ec61c98b9476781359f05b94da84e80f54d4
- https://git.kernel.org/stable/c/37555690f39f78ef69af347d9aff897e07445949
- https://git.kernel.org/stable/c/67cdb7bd7442bd3cdc6d6088bbb2df9be2fe936c
- https://git.kernel.org/stable/c/6d8fa684b42724d74a77f980f5ee47cfd1ec7e74
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-45985. Free for 1 server.
Get started free