CVE-2026-97545: xfs: don't leak new_bp if xfs_btree_bload_drop_buf fails
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
xfs: don't leak new_bp if xfs_btree_bload_drop_buf fails
LOLLM observes that in xfs_btree_bload_prep_block, xfs_btree_bload_drop_buf can hit an IO error if writing the delwri buffer list to disk fails. In this case, we fail to release new_bp, which means we lose a locked buffer. Fix that.
The Linux kernel CVE team has assigned CVE-2026-97545 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.8 with commit e069d549705e49841247acf9b3176744e27d5425 and fixed in 6.12.111 with commit 355b8a5d7e9a38fca8dbf7a4721450252ac7868f Issue introduced in 6.8 with commit e069d549705e49841247acf9b3176744e27d5425 and fixed in 6.18.53 with commit 176a53af77b430e1c19ee15fc492145ace666de7 Issue introduced in 6.8 with commit e069d549705e49841247acf9b3176744e27d5425 and fixed in 7.2.7 with commit b19dfd4546088a0823e0c47f8ceb6b2775bd1ac7 Issue introduced in 6.8 with commit e069d549705e49841247acf9b3176744e27d5425 and fixed in 7.3-rc3 with commit f1930bc578095409c2dcfca6e4e898b24f0f0de6
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-97545
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/xfs/libxfs/xfs_btree_staging.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/355b8a5d7e9a38fca8dbf7a4721450252ac7868f https://git.kernel.org/stable/c/176a53af77b430e1c19ee15fc492145ace666de7 https://git.kernel.org/stable/c/b19dfd4546088a0823e0c47f8ceb6b2775bd1ac7 https://git.kernel.org/stable/c/f1930bc578095409c2dcfca6e4e898b24f0f0de6