# CVE-2024-50015: ext4: dax: fix overflowing extents beyond inode size when partially writing

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **Published:** 2024-10-21T18:54:06.465Z
- **Modified:** 2026-10-15T01:19:04.927Z

## 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

## 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

- Linux: \>= 776722e85d3b0936253ecc3d14db4fba37f191ba, \< f8a7c342326f6ad1dfdb30a18dd013c70f5e9669; \>= 776722e85d3b0936253ecc3d14db4fba37f191ba, \< 8c30a9a8610c314554997f86370140746aa35661; \>= 776722e85d3b0936253ecc3d14db4fba37f191ba, \< abfaa876b948baaea4d14f21a1963789845c8b4c; \>= 776722e85d3b0936253ecc3d14db4fba37f191ba, \< 5efccdee4a7d507a483f20f880b809cc4eaef14d; \>= 776722e85d3b0936253ecc3d14db4fba37f191ba, \< a9f331f51515bdb3ebc8d0963131af367ef468f6; \>= 776722e85d3b0936253ecc3d14db4fba37f191ba, \< ec0dd451e236c46e4858d53e9e82bae7797a7af5; \>= 776722e85d3b0936253ecc3d14db4fba37f191ba, \< dda898d7ffe85931f9cca6d702a51f33717c501e (cvelist)
- Linux: 4.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/f8a7c342326f6ad1dfdb30a18dd013c70f5e9669>
- patch: <https://git.kernel.org/stable/c/8c30a9a8610c314554997f86370140746aa35661>
- patch: <https://git.kernel.org/stable/c/abfaa876b948baaea4d14f21a1963789845c8b4c>
- patch: <https://git.kernel.org/stable/c/5efccdee4a7d507a483f20f880b809cc4eaef14d>
- patch: <https://git.kernel.org/stable/c/a9f331f51515bdb3ebc8d0963131af367ef468f6>
- patch: <https://git.kernel.org/stable/c/ec0dd451e236c46e4858d53e9e82bae7797a7af5>
- patch: <https://git.kernel.org/stable/c/dda898d7ffe85931f9cca6d702a51f33717c501e>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-50015>

HTML: <https://flawdb.com/CVE-2024-50015> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-50015>
