# CVE-2024-50272: filemap: Fix bounds checking in filemap_read()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2024-11-19T01:30:11.194Z
- Modified: 2026-06-17T08:04:04.270Z
- Weaknesses: CWE-835
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from c2a9737f45e27d8263ff9643f994bda9bac0b944 before 6cc52df69e8464811f9f6fc12f7aaa78451eb0b8; from c2a9737f45e27d8263ff9643f994bda9bac0b944 before 26530b757c81f1389fb33ae0357500150933161b; from c2a9737f45e27d8263ff9643f994bda9bac0b944 before a2746ab3bbc9c6408da5cd072653ec8c24749235; from c2a9737f45e27d8263ff9643f994bda9bac0b944 before 6450e73f4c86d481ac2e22e1bc848d346e140826; from c2a9737f45e27d8263ff9643f994bda9bac0b944 before ace149e0830c380ddfce7e466fe860ca502fe4ee; 272830350bb1bb5bb39395966ea63b9864b135d1; fbc7b803831e5c8a42c1f3427a17e55a814d6b3c; 3d549dcfbbb0ecdaa571431a27ee5da9f2466716; from 3.16.40 before 3.17; from 4.7.10 before 4.8; from 4.8.4 before 4.9; 4.9 (not affected: before 4.9; from 5.15.181 up to 5.15.*; from 6.1.117 up to 6.1.*; from 6.6.61 up to 6.6.*; from 6.11.8 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 3.16.40 before 3.17; from 4.7.10 before 4.8; from 4.8.4 before 4.9; from 4.9 before 6.1.117; from 6.2 before 6.6.61; from 6.7 before 6.11.8; 6.12

## References

- <https://git.kernel.org/stable/c/6cc52df69e8464811f9f6fc12f7aaa78451eb0b8>
- <https://git.kernel.org/stable/c/26530b757c81f1389fb33ae0357500150933161b> (patch)
- <https://git.kernel.org/stable/c/a2746ab3bbc9c6408da5cd072653ec8c24749235> (patch)
- <https://git.kernel.org/stable/c/6450e73f4c86d481ac2e22e1bc848d346e140826> (patch)
- <https://git.kernel.org/stable/c/ace149e0830c380ddfce7e466fe860ca502fe4ee> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-50272](https://www.cve.org/CVERecord?id=CVE-2024-50272), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-50272](https://nvd.nist.gov/vuln/detail/CVE-2024-50272), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50272 · Whole record: https://cve.day/CVE-2024-50272.json · Rebuilt by cve.day 2026-11-25T22:58:48.406Z
