CVE-2024-50272

filemap: Fix bounds checking in filemap_read()

No CVSS score yet EPSS 0.27%

Published 19 Nov 2024 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2024-50272

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-50272 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:

filemap: Fix bounds checking in filemap_read()

If the caller supplies an iocb->ki_pos value that is close to the filesystem upper limit, and an iterator with a count that causes us to overflow that limit, then filemap_read() enters an infinite loop.

This behaviour was discovered when testing xfstests generic/525 with the "localio" optimisation for loopback NFS mounts.

Exploitation

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from c2a9737f45e27d8263ff9643f994bda9bac0b944, before 6cc52df69e8464811f9f6fc12f7aaa78451eb0b8
affected from c2a9737f45e27d8263ff9643f994bda9bac0b944, before 26530b757c81f1389fb33ae0357500150933161b
affected from c2a9737f45e27d8263ff9643f994bda9bac0b944, before a2746ab3bbc9c6408da5cd072653ec8c24749235
affected from c2a9737f45e27d8263ff9643f994bda9bac0b944, before 6450e73f4c86d481ac2e22e1bc848d346e140826
affected from c2a9737f45e27d8263ff9643f994bda9bac0b944, before ace149e0830c380ddfce7e466fe860ca502fe4ee
affected 272830350bb1bb5bb39395966ea63b9864b135d1
affected fbc7b803831e5c8a42c1f3427a17e55a814d6b3c
affected 3d549dcfbbb0ecdaa571431a27ee5da9f2466716
affected from 3.16.40, before 3.17
affected from 4.7.10, before 4.8
affected from 4.8.4, before 4.9
Other versions: unaffected
Linux
affected 4.9
unaffected before 4.9
unaffected from 5.15.181 up to and including 5.15.*
unaffected from 6.1.117 up to and including 6.1.*
unaffected from 6.6.61 up to and including 6.6.*
unaffected from 6.11.8 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-50272 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-50272

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-50272
trivy image --scanners vuln IMAGE | grep CVE-2024-50272

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-50272 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.