CVE-2025-40242: Linux kernel · gfs2: Fix unlikely race in gdlm_put_lock In gdlm_put_lock(), there is a small
Source GCVE Database
Not known to be exploited · CVSS 7.0 High.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 3% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 4 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
AI-suggested
Since this is a Linux kernel vulnerability, monitor official Linux kernel security advisories for patches addressing CVE-2025-40242 and apply updates promptly once available.
Description
A high-severity race condition vulnerability in the Linux kernel's gfs2 filesystem was resolved. The issue occurs in the gdlm_put_lock() function where a small timing window allows the DFL_UNMOUNT flag to be set while the lockspace has not yet been released. During this window, calls to gdlm_ast() and gdlm_bast() may dereference freed glock objects, leading to potential kernel memory corruption. The fix ensures that glock objects are only freed after the lockspace has been fully released.
References
- nvd.nist.gov/vuln/detail/CVE-2025-40242 (opens in a new tab)
- git.kernel.org/stable/c/279bde3bbb0ac0bad5c729dfa85983d75a5d7641 (opens in a new tab)
- git.kernel.org/stable/c/28c4d9bc0708956c1a736a9e49fee71b65deee81 (opens in a new tab)
- git.kernel.org/stable/c/4913592a3358f6ec366b8346b733d5e2360b08e1 (opens in a new tab)
- git.kernel.org/stable/c/5fdc1474e678eea1700aa266c0b7c2c96f81dd0d (opens in a new tab)
- git.kernel.org/stable/c/64c61b4ac645222fa7b724cef616c1f862a72a40 (opens in a new tab)