Skip to contentSkip to conversation

CVE-2026-80897: netfs: release readahead folios on iterator preparation failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 4

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-80897 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.14 with commit 06fa229ceb36898e68022b5654c017d2c6582d7d and fixed in 6.18.44 with commit 2c148a31ca01fc160aceec777bbc0041b0d0b8bd
	Issue introduced in 6.14 with commit 06fa229ceb36898e68022b5654c017d2c6582d7d and fixed in 7.1.8 with commit 935e7b74bb2368f215cf8c2ad4bff60ee4e7589e
	Issue introduced in 6.14 with commit 06fa229ceb36898e68022b5654c017d2c6582d7d and fixed in 7.2 with commit 87eb3d272dcbcbbfe5c1576c10e5dc72810cf1f6

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-80897

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/netfs/buffered_read.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/2c148a31ca01fc160aceec777bbc0041b0d0b8bd
	https://git.kernel.org/stable/c/935e7b74bb2368f215cf8c2ad4bff60ee4e7589e
	https://git.kernel.org/stable/c/87eb3d272dcbcbbfe5c1576c10e5dc72810cf1f6