CVE-2026-90262: btrfs: retry verity reads for not-uptodate Merkle folios
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
btrfs: retry verity reads for not-uptodate Merkle folios
btrfs_read_merkle_tree_page() can find a folio in the mapping that is not uptodate. After taking the folio lock, the current code treats that state as a read error and returns -EIO.
That can make a previous transient read failure sticky. If the failed read left a not-uptodate folio in the mapping, later callers find that folio and fail instead of retrying the read.
Keep the existing page-cache insertion and locking order, but retry the Merkle item read when a not-uptodate folio is found in the mapping. Also unlock the folio when read_key_bytes() fails so that a later caller can lock it and retry the read.
The Linux kernel CVE team has assigned CVE-2026-90262 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.6 with commit 06ed09351b67eb1114ae106a87a0ee3ea9adb3db and fixed in 6.6.157 with commit 90e9eae1b5907fa36620ffb7f4f1a4afa9333427 Issue introduced in 6.6 with commit 06ed09351b67eb1114ae106a87a0ee3ea9adb3db and fixed in 6.12.110 with commit c1fa005cdf3b7ff14cdfd7d512830088a3fc256b Issue introduced in 6.6 with commit 06ed09351b67eb1114ae106a87a0ee3ea9adb3db and fixed in 6.18.52 with commit 12b6d1a1715cbced2e445ca353f9c9987b8636e2 Issue introduced in 6.6 with commit 06ed09351b67eb1114ae106a87a0ee3ea9adb3db and fixed in 7.2.6 with commit 81241f734f0f662378f5ffc53882b012923e6fe5 Issue introduced in 6.6 with commit 06ed09351b67eb1114ae106a87a0ee3ea9adb3db and fixed in 7.3-rc1 with commit 8cc569696dac51fc62bb39b3b8f530582b916d29
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-90262
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/btrfs/verity.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/90e9eae1b5907fa36620ffb7f4f1a4afa9333427 https://git.kernel.org/stable/c/c1fa005cdf3b7ff14cdfd7d512830088a3fc256b https://git.kernel.org/stable/c/12b6d1a1715cbced2e445ca353f9c9987b8636e2 https://git.kernel.org/stable/c/81241f734f0f662378f5ffc53882b012923e6fe5 https://git.kernel.org/stable/c/8cc569696dac51fc62bb39b3b8f530582b916d29