CVE-2025-40242
Description
A flaw was found in the Linux kernel’s Global File System 2 implementation affecting distributed lock manager (DLM) handling in the gdlm_put_lock() function. During an unmount operation, if the DFL_UNMOUNT flag is set but the lockspace has not yet been fully released, remote callbacks (gdlm_ast() or gdlm_bast()) may still be invoked. This can result in dereferencing a freed glock (GFS2 lock) object, leading to undefined behavior and potential kernel instability or crashes.
Statement
Red Hat has rated this vulnerability as Moderate severity because triggering the race condition requires an active cluster configuration with shared storage and specific timing during a filesystem unmount. GFS2 is not mounted by default in Red Hat Enterprise Linux and is typically utilized only within specialized high-availability clustering environments. Exploitation is constrained to nodes participating in the cluster lockspace and primarily results in a denial of service through system crashes, without compromising data confidentiality or integrity.
Mitigation
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 5.9 | N/A | 7 |
| Attack Vector | Network | N/A | Local |
| Attack Complexity | High | N/A | High |
| Privileges Required | None | N/A | Low |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | None | N/A | High |
| Integrity Impact | None | N/A | High |
| Availability Impact | High | N/A | High |
Vector
Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
cve.org: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.