CVE-2026-63820: f2fs: fix missing read bio submission on large folio error
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix missing read bio submission on large folio error
f2fs_read_data_large_folio() can keep a read bio across multiple readahead folios. If a later folio hits an error before any of its blocks are added to the bio, folio_in_bio is false and the current error path returns immediately after ending that folio.
This can leave the bio accumulated for earlier folios unsubmitted. Those folios then never receive read completion, and readers can wait indefinitely on the locked folios.
Route errors through the common out path so any pending bio is submitted before returning. Stop consuming more readahead folios once an error is seen, and only wait on and clear the current folio when it was actually added to the bio.
The Linux kernel CVE team has assigned CVE-2026-63820 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.0 with commit a5d8b9d94e1863f3ebb7182c238b2c713f6f4efd and fixed in 7.1.3 with commit 48c92559e7b66fdc3cbc74f6e152e66ec0150a0a Issue introduced in 7.0 with commit a5d8b9d94e1863f3ebb7182c238b2c713f6f4efd and fixed in 7.2-rc1 with commit 74c8d2ec95c59a5651ecd975c466998af1961fd4
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-63820
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/f2fs/data.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/48c92559e7b66fdc3cbc74f6e152e66ec0150a0a https://git.kernel.org/stable/c/74c8d2ec95c59a5651ecd975c466998af1961fd4