CVE-2026-80534: xfs: fix ilock leak on error in xfs_dq_get_next_id
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
xfs: fix ilock leak on error in xfs_dq_get_next_id
xfs_dq_get_next_id() takes the quota inode ILOCK before calling xfs_iread_extents(). If xfs_iread_extents() fails, the function returns immediately without releasing the lock, leaking the quota inode ILOCK. This can leave the quota inode locked and cause subsequent quota operations to hang.
Fix this by jumping to a common unlock path on error instead of returning directly.
The Linux kernel CVE team has assigned CVE-2026-80534 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.13 with commit bda250dbaf39f67f8910e183853e4e6a9e5ce899 and fixed in 5.15.217 with commit 6401b99a285cd4cfb2949ba44675541b91ad7e4f Issue introduced in 4.13 with commit bda250dbaf39f67f8910e183853e4e6a9e5ce899 and fixed in 6.1.184 with commit 0865e4fca02e418fd2423fae9a887dee87b778a1 Issue introduced in 4.13 with commit bda250dbaf39f67f8910e183853e4e6a9e5ce899 and fixed in 6.6.153 with commit ed8bfb43de71213cfdbbe833b2c2817250e18b1a Issue introduced in 4.13 with commit bda250dbaf39f67f8910e183853e4e6a9e5ce899 and fixed in 6.12.105 with commit e270d539b8a2e0cb8f617fee47a7b083c0088361 Issue introduced in 4.13 with commit bda250dbaf39f67f8910e183853e4e6a9e5ce899 and fixed in 6.18.46 with commit 514a5d42d4188fc5f1499a8d654c717ebf981193 Issue introduced in 4.13 with commit bda250dbaf39f67f8910e183853e4e6a9e5ce899 and fixed in 7.1.10 with commit 08bed2b67d2ee79d3e138c344d8dcfa4c9b26a38 Issue introduced in 4.13 with commit bda250dbaf39f67f8910e183853e4e6a9e5ce899 and fixed in 7.2 with commit 63320a0f70f66f311f4bccff3af0719c2119f46c
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-80534
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/xfs_dquot.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/6401b99a285cd4cfb2949ba44675541b91ad7e4f https://git.kernel.org/stable/c/0865e4fca02e418fd2423fae9a887dee87b778a1 https://git.kernel.org/stable/c/ed8bfb43de71213cfdbbe833b2c2817250e18b1a https://git.kernel.org/stable/c/e270d539b8a2e0cb8f617fee47a7b083c0088361 https://git.kernel.org/stable/c/514a5d42d4188fc5f1499a8d654c717ebf981193 https://git.kernel.org/stable/c/08bed2b67d2ee79d3e138c344d8dcfa4c9b26a38 https://git.kernel.org/stable/c/63320a0f70f66f311f4bccff3af0719c2119f46c