CVE-2024-50015

ext4: dax: fix overflowing extents beyond inode size when partially writing

No CVSS score yet EPSS 0.24%

Published 21 Oct 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-50015

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-50015 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.4% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 22 Oct 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 776722e85d3b0936253ecc3d14db4fba37f191ba, before f8a7c342326f6ad1dfdb30a18dd013c70f5e9669
affected from 776722e85d3b0936253ecc3d14db4fba37f191ba, before 8c30a9a8610c314554997f86370140746aa35661
affected from 776722e85d3b0936253ecc3d14db4fba37f191ba, before abfaa876b948baaea4d14f21a1963789845c8b4c
affected from 776722e85d3b0936253ecc3d14db4fba37f191ba, before 5efccdee4a7d507a483f20f880b809cc4eaef14d
affected from 776722e85d3b0936253ecc3d14db4fba37f191ba, before a9f331f51515bdb3ebc8d0963131af367ef468f6
affected from 776722e85d3b0936253ecc3d14db4fba37f191ba, before ec0dd451e236c46e4858d53e9e82bae7797a7af5
affected from 776722e85d3b0936253ecc3d14db4fba37f191ba, before dda898d7ffe85931f9cca6d702a51f33717c501e
Other versions: unaffected
Linux
affected 4.10
unaffected before 4.10
unaffected from 5.10.227 up to and including 5.10.*
unaffected from 5.15.168 up to and including 5.15.*
unaffected from 6.1.113 up to and including 6.1.*
unaffected from 6.6.55 up to and including 6.6.*
unaffected from 6.10.14 up to and including 6.10.*
unaffected from 6.11.3 up to and including 6.11.*
unaffected 6.12 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-50015 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-50015

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-50015
trivy image --scanners vuln IMAGE | grep CVE-2024-50015

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-50015 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.