filemap: Fix bounds checking in filemap_read()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
272830350bb1bb5bb39395966ea63b9864b135d1| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's filemap_read() can enter an infinite loop when a caller supplies a file position near the filesystem upper limit and an iterator count that exceeds it. The issue was found while testing the localio optimization for loopback NFS mounts; the input does not specify whether authentication or user interaction is required.
Engineers running the Linux kernel should check their versions against the vendor advisory; affected versions are not specified.