netfs: release readahead folios on iterator preparation failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfs: release readahead folios on iterator preparation failure
netfs_prepare_read_iterator() batches readahead folios in put_batch so that the folio references can be dropped after the I/O iterator has been prepared.
If rolling_buffer_load_from_ra() fails after earlier folios have been batched, the function returns immediately and leaves those references held. Release the batch before returning the error.
From the CVE record · Linux
A failure in netfs read-iterator preparation can leave references to readahead folios held instead of releasing them. The input does not describe an attacker action, access requirements, or user interaction.
Engineers running the Linux kernel should check their versions for this issue; affected versions are not specified.