CVE-2024-50015
ext4: dax: fix overflowing extents beyond inode size when partially writing
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < f8a7c342326f6ad1dfdb30a18dd013c70f5e9669; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < 8c30a9a8610c314554997f86370140746aa35661; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < abfaa876b948baaea4d14f21a1963789845c8b4c; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < 5efccdee4a7d507a483f20f880b809cc4eaef14d; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < a9f331f51515bdb3ebc8d0963131af367ef468f6; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < ec0dd451e236c46e4858d53e9e82bae7797a7af5; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < dda898d7ffe85931f9cca6d702a51f33717c501e
- Anyone running Linux 4.10
Vulnerability facts
- Affected
- Linux >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < f8a7c342326f6ad1dfdb30a18dd013c70f5e9669; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < 8c30a9a8610c314554997f86370140746aa35661; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < abfaa876b948baaea4d14f21a1963789845c8b4c; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < 5efccdee4a7d507a483f20f880b809cc4eaef14d; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < a9f331f51515bdb3ebc8d0963131af367ef468f6; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < ec0dd451e236c46e4858d53e9e82bae7797a7af5; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < dda898d7ffe85931f9cca6d702a51f33717c501e; Linux 4.10
- Fixed in
- Linux 8c30a9a8610c314554997f86370140746aa35661, Linux 5efccdee4a7d507a483f20f880b809cc4eaef14d
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.32% chance of exploitation in 30 days (percentile 17, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: ext4: dax: fix overflowing extents beyond inode size when partially writing The dax_iomap_rw() does two things in each iteration: map written blocks and copy user data to blocks. If the process is killed by user(See signal handling in dax_iomap_iter()), the copied data will be returned and added on inode size, which means that the length of written extents may exceed the inode size, then fsck will fail. An example is given as: dd if=/dev/urandom of=file bs=4M count=1 dax_iomap_rw iomap_iter // round 1 ext4_iomap_begin ext4_iomap_alloc // allocate 0~2M extents(written flag) dax_iomap_iter // copy 2M data iomap_iter // round 2 iomap_iter_advance iter->pos += iter->processed // iter->pos = 2M ext4_iomap_begin ext4_iomap_alloc // allocate 2~4M extents(written flag) dax_iomap_iter fatal_signal_pending done = iter->pos - iocb->ki_pos // done = 2M ext4_handle_inode_extension ext4_update_inode_size // inode size = 2M fsck reports: Inode 13, i_size is 2097152, should be 4194304. Fix? Fix the problem by truncating extents if the written length is smaller than expected.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < f8a7c342326f6ad1dfdb30a18dd013c70f5e9669; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < 8c30a9a8610c314554997f86370140746aa35661; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < abfaa876b948baaea4d14f21a1963789845c8b4c; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < 5efccdee4a7d507a483f20f880b809cc4eaef14d; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < a9f331f51515bdb3ebc8d0963131af367ef468f6; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < ec0dd451e236c46e4858d53e9e82bae7797a7af5; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < dda898d7ffe85931f9cca6d702a51f33717c501e | — | cvelist |
| Linux | 4.10 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-50015. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-50015.md Affected: Linux >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < f8a7c342326f6ad1dfdb30a18dd013c70f5e9669; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < 8c30a9a8610c314554997f86370140746aa35661; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < abfaa876b948baaea4d14f21a1963789845c8b4c; >= 776722e85d3b0936253ecc3… Fixed in: Linux 8c30a9a8610c314554997f86370140746aa35661, Linux 5efccdee4a7d507a483f20f880b809cc4eaef14d Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/f8a7c342326f6ad1dfdb30a18dd013c70f5e9669
- https://git.kernel.org/stable/c/8c30a9a8610c314554997f86370140746aa35661
- https://git.kernel.org/stable/c/abfaa876b948baaea4d14f21a1963789845c8b4c
- https://git.kernel.org/stable/c/5efccdee4a7d507a483f20f880b809cc4eaef14d
- https://git.kernel.org/stable/c/a9f331f51515bdb3ebc8d0963131af367ef468f6
- https://git.kernel.org/stable/c/ec0dd451e236c46e4858d53e9e82bae7797a7af5
- https://git.kernel.org/stable/c/dda898d7ffe85931f9cca6d702a51f33717c501e
FAQ
Is CVE-2024-50015 being exploited?
There is no confirmed exploitation: CVE-2024-50015 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-50015?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-50015?
Linux >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < f8a7c342326f6ad1dfdb30a18dd013c70f5e9669; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < 8c30a9a8610c314554997f86370140746aa35661; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < abfaa876b948baaea4d14f21a1963789845c8b4c; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < 5efccdee4a7d507a483f20f880b809cc4eaef14d; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < a9f331f51515bdb3ebc8d0963131af367ef468f6; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < ec0dd451e236c46e4858d53e9e82bae7797a7af5; >= 776722e85d3b0936253ecc3d14db4fba37f191ba, < dda898d7ffe85931f9cca6d702a51f33717c501e; Linux 4.10.
Is there a fix for CVE-2024-50015?
Yes. Fixed in Linux 8c30a9a8610c314554997f86370140746aa35661, Linux 5efccdee4a7d507a483f20f880b809cc4eaef14d. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-50015?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.