CVE-2024-50272
JSON

5.5medium

filemap: Fix bounds checking in filemap_read()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.27% (higher than 21% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom c2a9737f45e27d8263ff9643f994bda9bac0b944 before 6cc52df69e8464811f9f6fc12f7aaa78451eb0b8, from c2a9737f45e27d8263ff9643f994bda9bac0b944 before 26530b757c81f1389fb33ae0357500150933161b, from c2a9737f45e27d8263ff9643f994bda9bac0b944 before a2746ab3bbc9c6408da5cd072653ec8c24749235, from c2a9737f45e27d8263ff9643f994bda9bac0b944 before 6450e73f4c86d481ac2e22e1bc848d346e140826, from c2a9737f45e27d8263ff9643f994bda9bac0b944 before ace149e0830c380ddfce7e466fe860ca502fe4ee, 272830350bb1bb5bb39395966ea63b9864b135d1, fbc7b803831e5c8a42c1f3427a17e55a814d6b3c, 3d549dcfbbb0ecdaa571431a27ee5da9f2466716 and 4 more
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 *
CVE List
linux linux_kernelfrom 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.12NVD

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: filemap: Se ha corregido la comprobación de los límites en filemap_read() Si el llamador proporciona un valor iocb->ki_pos que está cerca del límite superior del sistema de archivos y un iterador con un recuento que hace que desbordemos ese límite, filemap_read() entra en un bucle infinito. Este comportamiento se descubrió al probar xfstests generic/525 con la optimización "localio" para montajes NFS de bucle invertido.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-50272 changed 2026-05-23CVE Terms of Use
NVDCVE-2024-50272 changed 2026-06-17Public domain