CVE-2026-45861

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

Published May 27, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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>.

Analysis

AI-generated

Technical impact

The Linux kernel includes a use‑after‑free condition in the GFS2 filesystem’s quota data handler (CWE‑416) that also mismanages the least‑recently‑used list (CWE‑911). When the qd_put() routine removes quota data objects from the LRU list without unlinking them, the list becomes corrupted. If the gfs2_qd_shrink_scan shrinker later attempts to access those freed objects—particularly during a filesystem shutdown—a use‑after‑free can corrupt kernel memory, potentially allowing an attacker to execute arbitrary code in kernel mode.

Affected Systems

The flaw affects any Linux kernel that contains the GFS2 filesystem and does not yet incorporate the fix introduced in commit a475c5dd16e5. This includes a broad range of distribution kernels and custom builds compiled from source without the patch. No specific version bounds are provided, so any kernel prior to the hotfix is potentially vulnerable.

Risk and Exploitability

The CVSS score of 7.8 signals a high severity, while the EPSS score of < 1% indicates a very low likelihood of exploitation. The vulnerability manifests during a shutdown sequence of a GFS2 volume and it is inferred that it may require local or physical access to trigger. Though no public exploit is known and it is not listed in the CISA KEV catalog, kernel memory corruption could lead to code execution in privileged mode if successfully leveraged.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a release that includes commit a475c5dd16e5, which removes qd objects from the LRU list before freeing them.
  • Reboot the system after the kernel update so that the patched version is loaded into memory.
  • If GFS2 filesystems are not required, unmount or disable GFS2 support or quota handling to eliminate the attack surface.

Generated by OpenCVE AI on August 14, 2026 at 02:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8492-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8497-1 Linux kernel (Low Latency) vulnerabilities
Ubuntu USN Ubuntu USN USN-8498-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-8499-1 Linux kernel (Xilinx) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-3 Linux kernel (Raspberry Pi Real-time) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-4 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-5 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8606-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8607-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8609-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8619-1 Linux kernel (HWE) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-911
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
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>.
Title gfs2: Fix slab-use-after-free in qd_put
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 21, 2026, 12:40 PM
Reserved
May 13, 2026, 3:03 PM
Status
Modified
Published
May 27, 2026, 2:16 PM
Modified
Oct 21, 2026, 1:18 PM
Severity
Moderate
Public date
May 27, 2026, 12:00 AM