CVE-2025-40242
gfs2: Fix unlikely race in gdlm_put_lock
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= d1340f80f0b8066321b499a376780da00560e857, < 5fdc1474e678eea1700aa266c0b7c2c96f81dd0d; >= d1340f80f0b8066321b499a376780da00560e857, < 4913592a3358f6ec366b8346b733d5e2360b08e1; >= d1340f80f0b8066321b499a376780da00560e857, < 279bde3bbb0ac0bad5c729dfa85983d75a5d7641; >= d1340f80f0b8066321b499a376780da00560e857, < 64c61b4ac645222fa7b724cef616c1f862a72a40; >= d1340f80f0b8066321b499a376780da00560e857, < 28c4d9bc0708956c1a736a9e49fee71b65deee81; 6aa628c45875e7b8cca81ed9447a12a0e8f3504a; a97e75203733be0a4263a78fb7b29352be150c1c; 3554b46204e67333e1fb8be0e93936fb08267c80; 5cff77b9827a956d076168b56775aad23bce87e4; 8deedce385d220f90e435f534d71d27526273515; …
- Anyone running Linux 5.15
Vulnerability facts
- Affected
- Linux >= d1340f80f0b8066321b499a376780da00560e857, < 5fdc1474e678eea1700aa266c0b7c2c96f81dd0d; >= d1340f80f0b8066321b499a376780da00560e857, < 4913592a3358f6ec366b8346b733d5e2360b08e1; >= d1340f80f0b8066321b499a376780da00560e857, < 279bde3bbb0ac0bad5c729dfa85983d75a5d7641; >= d1340f80f0b8066321b499a376780da00560e857, < 64c61b4ac645222fa7b724cef616c1f862a72a40; >= d1340f80f0b8066321b499a376780da00560e857, < 28c4d9bc0708956c1a736a9e49fee71b65deee81; 6aa628c45875e7b8cca81ed9447a12a0e8f3504a; a97e75203733be0a4263a78fb7b29352be150c1c; 3554b46204e67333e1fb8be0e93936fb08267c80; 5cff77b9827a956d076168b56775aad23bce87e4; 8deedce385d220f90e435f534d71d27526273515; …; Linux 5.15
- Fixed in
- Linux 5fdc1474e678eea1700aa266c0b7c2c96f81dd0d, Linux 4913592a3358f6ec366b8346b733d5e2360b08e1, Linux 279bde3bbb0ac0bad5c729dfa85983d75a5d7641, Linux 64c61b4ac645222fa7b724cef616c1f862a72a40, Linux 28c4d9bc0708956c1a736a9e49fee71b65deee81
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.0 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.21% chance of exploitation in 30 days (percentile 6, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: gfs2: Fix unlikely race in gdlm_put_lock In gdlm_put_lock(), there is a small window of time in which the DFL_UNMOUNT flag has been set but the lockspace hasn't been released, yet. In that window, dlm may still call gdlm_ast() and gdlm_bast(). To prevent it from dereferencing freed glock objects, only free the glock if the lockspace has actually been released.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= d1340f80f0b8066321b499a376780da00560e857, < 5fdc1474e678eea1700aa266c0b7c2c96f81dd0d; >= d1340f80f0b8066321b499a376780da00560e857, < 4913592a3358f6ec366b8346b733d5e2360b08e1; >= d1340f80f0b8066321b499a376780da00560e857, < 279bde3bbb0ac0bad5c729dfa85983d75a5d7641; >= d1340f80f0b8066321b499a376780da00560e857, < 64c61b4ac645222fa7b724cef616c1f862a72a40; >= d1340f80f0b8066321b499a376780da00560e857, < 28c4d9bc0708956c1a736a9e49fee71b65deee81; 6aa628c45875e7b8cca81ed9447a12a0e8f3504a; a97e75203733be0a4263a78fb7b29352be150c1c; 3554b46204e67333e1fb8be0e93936fb08267c80; 5cff77b9827a956d076168b56775aad23bce87e4; 8deedce385d220f90e435f534d71d27526273515; … | — | cvelist |
| Linux | 5.15 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-40242. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-40242.md Affected: Linux >= d1340f80f0b8066321b499a376780da00560e857, < 5fdc1474e678eea1700aa266c0b7c2c96f81dd0d; >= d1340f80f0b8066321b499a376780da00560e857, < 4913592a3358f6ec366b8346b733d5e2360b08e1; >= d1340f80f0b8066321b499a376780da00560e857, < 279bde3bbb0ac0bad5c729dfa85983d75a5d7641; >= d1340f80f0b8066321b499a… Fixed in: Linux 5fdc1474e678eea1700aa266c0b7c2c96f81dd0d, Linux 4913592a3358f6ec366b8346b733d5e2360b08e1, Linux 279bde3bbb0ac0bad5c729dfa85983d75a5d7641, Linux 64c61b4ac645222fa7b724cef616c1f862a72a40, Linux 28c4d9bc0708956c1a736a9e49fee71b65deee81 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- https://git.kernel.org/stable/c/5fdc1474e678eea1700aa266c0b7c2c96f81dd0d
- https://git.kernel.org/stable/c/4913592a3358f6ec366b8346b733d5e2360b08e1
- https://git.kernel.org/stable/c/279bde3bbb0ac0bad5c729dfa85983d75a5d7641
- https://git.kernel.org/stable/c/64c61b4ac645222fa7b724cef616c1f862a72a40
- https://git.kernel.org/stable/c/28c4d9bc0708956c1a736a9e49fee71b65deee81
FAQ
Is CVE-2025-40242 being exploited?
There is no confirmed exploitation: CVE-2025-40242 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-40242?
High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2025-40242?
Linux >= d1340f80f0b8066321b499a376780da00560e857, < 5fdc1474e678eea1700aa266c0b7c2c96f81dd0d; >= d1340f80f0b8066321b499a376780da00560e857, < 4913592a3358f6ec366b8346b733d5e2360b08e1; >= d1340f80f0b8066321b499a376780da00560e857, < 279bde3bbb0ac0bad5c729dfa85983d75a5d7641; >= d1340f80f0b8066321b499a376780da00560e857, < 64c61b4ac645222fa7b724cef616c1f862a72a40; >= d1340f80f0b8066321b499a376780da00560e857, < 28c4d9bc0708956c1a736a9e49fee71b65deee81; 6aa628c45875e7b8cca81ed9447a12a0e8f3504a; a97e75203733be0a4263a78fb7b29352be150c1c; 3554b46204e67333e1fb8be0e93936fb08267c80; 5cff77b9827a956d076168b56775aad23bce87e4; 8deedce385d220f90e435f534d71d27526273515; …; Linux 5.15.
Is there a fix for CVE-2025-40242?
Yes. Fixed in Linux 5fdc1474e678eea1700aa266c0b7c2c96f81dd0d, Linux 4913592a3358f6ec366b8346b733d5e2360b08e1, Linux 279bde3bbb0ac0bad5c729dfa85983d75a5d7641, Linux 64c61b4ac645222fa7b724cef616c1f862a72a40, Linux 28c4d9bc0708956c1a736a9e49fee71b65deee81. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-40242?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.