CVE-2026-98269: btrfs: abort transaction on failure to update inode for hole punching and reflinking
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
btrfs: abort transaction on failure to update inode for hole punching and reflinking
If we fail to update the inode we error out without aborting the transaction, which can result in a persistent inconsistency if after the failure the transaction is committed, as we have dropped file extent items from a range and either punched a hole or insert a new file extent item for that range (for reflinks).
So add the missing transaction abort.
The Linux kernel CVE team has assigned CVE-2026-98269 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.7 with commit 2aaa66558172b017f36bf38ae69372813dedee9d and fixed in 6.6.158 with commit 2605eb9ba3bbd4c9f455cfe6b85bd28a1da7067d Issue introduced in 3.7 with commit 2aaa66558172b017f36bf38ae69372813dedee9d and fixed in 6.12.112 with commit 834a3b5c5f1ec0df48c1a6208f9989f4ffdaa0b6 Issue introduced in 3.7 with commit 2aaa66558172b017f36bf38ae69372813dedee9d and fixed in 6.18.54 with commit 9588850bfa75c78ce73c2f6f72544d19d2e9beb6 Issue introduced in 3.7 with commit 2aaa66558172b017f36bf38ae69372813dedee9d and fixed in 7.2.8 with commit 36c68dc909845c049e0286d229bc502947239452 Issue introduced in 3.7 with commit 2aaa66558172b017f36bf38ae69372813dedee9d and fixed in 7.3-rc4 with commit 97fcd34aa9fd73cefe3120ac9a82ca9d7763922f
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-98269
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/file.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/2605eb9ba3bbd4c9f455cfe6b85bd28a1da7067d https://git.kernel.org/stable/c/834a3b5c5f1ec0df48c1a6208f9989f4ffdaa0b6 https://git.kernel.org/stable/c/9588850bfa75c78ce73c2f6f72544d19d2e9beb6 https://git.kernel.org/stable/c/36c68dc909845c049e0286d229bc502947239452 https://git.kernel.org/stable/c/97fcd34aa9fd73cefe3120ac9a82ca9d7763922f