# CVE-2025-40242: gfs2: Fix unlikely race in gdlm\_put\_lock

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2025-12-04T15:31:31.497Z
- **Modified:** 2026-10-19T19:10:00.130Z

## 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

## 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

- Linux: \>= d1340f80f0b8066321b499a376780da00560e857, \< 5fdc1474e678eea1700aa266c0b7c2c96f81dd0d; \>= d1340f80f0b8066321b499a376780da00560e857, \< 4913592a3358f6ec366b8346b733d5e2360b08e1; \>= d1340f80f0b8066321b499a376780da00560e857, \< 279bde3bbb0ac0bad5c729dfa85983d75a5d7641; \>= d1340f80f0b8066321b499a376780da00560e857, \< 64c61b4ac645222fa7b724cef616c1f862a72a40; \>= d1340f80f0b8066321b499a376780da00560e857, \< 28c4d9bc0708956c1a736a9e49fee71b65deee81; 6aa628c45875e7b8cca81ed9447a12a0e8f3504a; a97e75203733be0a4263a78fb7b29352be150c1c; 3554b46204e67333e1fb8be0e93936fb08267c80; 5cff77b9827a956d076168b56775aad23bce87e4; 8deedce385d220f90e435f534d71d27526273515; … (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/5fdc1474e678eea1700aa266c0b7c2c96f81dd0d>
- other: <https://git.kernel.org/stable/c/4913592a3358f6ec366b8346b733d5e2360b08e1>
- other: <https://git.kernel.org/stable/c/279bde3bbb0ac0bad5c729dfa85983d75a5d7641>
- other: <https://git.kernel.org/stable/c/64c61b4ac645222fa7b724cef616c1f862a72a40>
- other: <https://git.kernel.org/stable/c/28c4d9bc0708956c1a736a9e49fee71b65deee81>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40242>

HTML: <https://flawdb.com/CVE-2025-40242> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40242>
