
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-40242 is a race condition vulnerability in the Linux kernel's GFS2 (Global File System 2) subsystem, specifically within the gdlm_put_lock() function. The flaw exists because there is a small time window in which the DFL_UNMOUNT flag has been set but the lockspace has not yet been released, during which the distributed lock manager (DLM) may still invoke gdlm_ast() and gdlm_bast(), potentially dereferencing freed glock objects. It affects Linux kernel versions from the initial commit up to the patched releases (6.12.56, 6.17.6, and 6.18+), and was published on December 4, 2025. The CVSS v3.1 base score assigned by Microsoft is 9.8 (Critical), though this score appears inflated relative to the local nature of the vulnerability (Microsoft MSRC, Feedly).
The root cause is a classic time-of-check/time-of-use (TOCTOU) race condition (CWE-362) in the GFS2 kernel module's lock management code. In gdlm_put_lock(), after the DFL_UNMOUNT flag is set to signal an unmount operation, there remains a brief window before the DLM lockspace is actually released. During this window, DLM callbacks gdlm_ast() and gdlm_bast() can still fire and attempt to access glock objects that have already been freed, resulting in a use-after-free condition. The fix ensures that the glock is only freed after confirming the lockspace has actually been released, closing the race window (Feedly). Patch commits are available at kernel stable trees for the affected version ranges.
Successful exploitation of this use-after-free race condition could lead to kernel crashes (denial of service), memory corruption, or potentially arbitrary code execution in kernel context, depending on how the freed memory is reallocated and accessed. The vulnerability affects systems using GFS2 — a clustered file system typically deployed in high-availability Linux environments — meaning exploitation could destabilize shared storage infrastructure. Confidentiality, integrity, and availability are all potentially impacted if an attacker can reliably trigger the race and control subsequent memory allocation (Feedly).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of reporting (Feedly). The EPSS score is very low at approximately 0.017%, reflecting the low probability of near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires triggering a specific race condition during GFS2 unmount operations, which adds practical complexity and limits the realistic attack surface primarily to local or privileged contexts despite the high CVSS score assigned.
Apply the upstream Linux kernel patches that resolve this race condition. Fixed versions include kernel 6.12.56, 6.17.6, and 6.18 or later. Patch commits are available in the kernel stable tree (commits 279bde3bbb0a, 64c61b4ac645, and 28c4d9bc0708). Distributions such as SUSE, openSUSE, and Debian have issued updated kernel packages incorporating this fix. Organizations using GFS2 in clustered environments should prioritize patching; as a temporary measure, avoiding GFS2 unmount operations on actively used cluster nodes may reduce exposure until patching is feasible (Microsoft MSRC, Feedly).
The vulnerability was noted in Rapid7's December 2025 Patch Tuesday coverage and Sophos's end-of-year patch roundup, both of which highlighted it among a broader set of Linux kernel fixes addressed that month (Rapid7 Blog, Sophos News). No significant independent researcher commentary or social media discussion specific to this CVE has been observed, consistent with its low EPSS score and absence of public exploitation.
Fix availability across major Linux distributions and their releases.
bionic (esm-infra)
linux
bionic (fips-updates)
linux-fips
bionic (fips)
linux-fips
devel
linux
focal (esm-infra)
linux
focal (fips-updates)
linux-fips
focal (fips)
linux-fips
jammy
linux
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."