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 <kartikey406@gmail.com>.
Product status
a475c5dd16e57c570113eccba51955b5df8bb052 (git) before ca7c67bdd293089b3483f18886d6b2d0037d2ad9
a475c5dd16e57c570113eccba51955b5df8bb052 (git) before 1d47922b98046b8070a77347fb883a6523792803
a475c5dd16e57c570113eccba51955b5df8bb052 (git) before 80fff26d7a0c3926b511661c27eecc811a420eef
a475c5dd16e57c570113eccba51955b5df8bb052 (git) before 22150a7d401d9e9169b9b68e05bed95f7f49bf69
6.6
Any version before 6.6
6.12.75 (semver)
6.18.14 (semver)
6.19.4 (semver)
7.0 (original_commit_for_fix)
References
git.kernel.org/...c/ca7c67bdd293089b3483f18886d6b2d0037d2ad9
git.kernel.org/...c/1d47922b98046b8070a77347fb883a6523792803
git.kernel.org/...c/80fff26d7a0c3926b511661c27eecc811a420eef
git.kernel.org/...c/22150a7d401d9e9169b9b68e05bed95f7f49bf69