Skip to contentSkip to conversation

CVE-2026-45861: gfs2: Fix slab-use-after-free in qd_put

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

gfs2: Fix slab-use-after-free in qd_put

Commit a475c5dd16e5 ("gfs2: Free quota data objects synchronously") started freeing quota data objects during filesystem shutdown instead of putting them back onto the LRU list, but it failed to remove these objects from the LRU list, causing LRU list corruption. This caused use-after-free when the shrinker (gfs2_qd_shrink_scan) tried to access already-freed objects on the LRU list.

Fix this by removing qd objects from the LRU list before freeing them in qd_put().

Initial fix from Deepanshu Kartikey <[email protected]>.

The Linux kernel CVE team has assigned CVE-2026-45861 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.6 with commit a475c5dd16e57c570113eccba51955b5df8bb052 and fixed in 6.12.75 with commit ca7c67bdd293089b3483f18886d6b2d0037d2ad9
	Issue introduced in 6.6 with commit a475c5dd16e57c570113eccba51955b5df8bb052 and fixed in 6.18.14 with commit 1d47922b98046b8070a77347fb883a6523792803
	Issue introduced in 6.6 with commit a475c5dd16e57c570113eccba51955b5df8bb052 and fixed in 6.19.4 with commit 80fff26d7a0c3926b511661c27eecc811a420eef
	Issue introduced in 6.6 with commit a475c5dd16e57c570113eccba51955b5df8bb052 and fixed in 7.0 with commit 22150a7d401d9e9169b9b68e05bed95f7f49bf69

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-45861

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/gfs2/quota.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/ca7c67bdd293089b3483f18886d6b2d0037d2ad9
	https://git.kernel.org/stable/c/1d47922b98046b8070a77347fb883a6523792803
	https://git.kernel.org/stable/c/80fff26d7a0c3926b511661c27eecc811a420eef
	https://git.kernel.org/stable/c/22150a7d401d9e9169b9b68e05bed95f7f49bf69