gfs2: Fix slab-use-after-free in qd_put
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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>.
From the CVE record · Linux
During GFS2 filesystem shutdown, quota data objects can be freed while still on an LRU list. If the GFS2 shrinker later accesses one, it can trigger a slab use-after-free; the input does not establish whether an attacker can trigger it or what access would be required.
Engineers running Linux kernels with GFS2 should check whether their kernel includes the fix; affected versions are not specified.