CWE data temporarily unavailableCWE data is currently experiencing intermittent outages, which may cause incomplete section loading on CVE pages. We are actively working on a fix.

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 HatNVDcve.org
Base Score5.9N/A7
Attack VectorNetworkN/ALocal
Attack ComplexityHighN/AHigh
Privileges RequiredNoneN/ALow
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityNoneN/AHigh
Integrity ImpactNoneN/AHigh
Availability ImpactHighN/AHigh

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

Want to get errata notifications? Sign up here.