CyberAlerts is shutting down on June 30th, 2025. Thank you for your support!

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

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.

Classification

CVE ID: CVE-2024-50272

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 11.69% (scored less or equal to compared to others)

EPSS Date: 2025-05-31 (when was this score calculated)

References

https://nvd.nist.gov/vuln/detail/CVE-2024-50272
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

Timeline