CVE-2026-99132: xfs: don't hold buffer locks across sync transaction commit in xfs_sync_sb_buf
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
xfs: don't hold buffer locks across sync transaction commit in xfs_sync_sb_buf
xfs_sync_sb_buf() holds sb/rtsb buffer locks across a synchronous xfs_trans_commit(), which flushes the CIL push workqueue internally. If shutdown occurs during the CIL push, xfs_buf_item_unpin() needs to lock these buffers to fail them, causing a deadlock:
setlabel: holds buf lock -> flush_workqueue(xfs-cil)
CIL push worker: xfs_buf_item_unpin -> xfs_buf_lock(same buf)
Remove the xfs_trans_bhold() calls so that commit releases the buffer locks normally. After the sync commit, re-acquire the buffers via mp->m_sb_bp / mp->m_rtsb_bp for the on-disk writeback.
The Linux kernel CVE team has assigned CVE-2026-99132 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.18 with commit f7664b31975bd893190708e76b2c424328f0c49b and fixed in 6.18.59 with commit e5456dec79c71c8ef8f9f9adb77d320f113b34db Issue introduced in 4.18 with commit f7664b31975bd893190708e76b2c424328f0c49b and fixed in 7.2.13 with commit 6353e5cd8c43d6e805cacbfbfecf4103571a7ff8 Issue introduced in 4.18 with commit f7664b31975bd893190708e76b2c424328f0c49b and fixed in 7.3 with commit 41a28c865d1d5843f8cb9e0af17a8f4d9e2961ff
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-99132
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_rtgroup.h
fs/xfs/libxfs/xfs_sb.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/e5456dec79c71c8ef8f9f9adb77d320f113b34db https://git.kernel.org/stable/c/6353e5cd8c43d6e805cacbfbfecf4103571a7ff8 https://git.kernel.org/stable/c/41a28c865d1d5843f8cb9e0af17a8f4d9e2961ff