CVE-2025-40242
gfs2: Fix unlikely race in gdlm_put_lock
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.
INFO
Published Date :
Dec. 4, 2025, 4:16 p.m.
Last Modified :
Oct. 19, 2026, 7:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Update the Linux kernel to the latest stable version.
- Apply the specific patch for gfs2 race condition.
- Verify the fix by testing lock space operations.
- Restart affected systems if necessary.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-40242.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-40242 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-40242
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-40242 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-40242 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 19, 2026
Action Type Old Value New Value Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: gfs2: Corrección de una condición de carrera improbable en gdlm_put_lock En gdlm_put_lock(), existe una pequeña ventana de tiempo en la que la bandera DFL_UNMOUNT ha sido establecida, pero el lockspace aún no ha sido liberado. En esa ventana, dlm aún puede llamar a gdlm_ast() y gdlm_bast(). Para evitar que desreferencie objetos glock liberados, solo se debe liberar el glock si el lockspace ha sido realmente liberado. -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 15, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/279bde3bbb0ac0bad5c729dfa85983d75a5d7641 Added Reference https://git.kernel.org/stable/c/28c4d9bc0708956c1a736a9e49fee71b65deee81 Added Reference https://git.kernel.org/stable/c/4913592a3358f6ec366b8346b733d5e2360b08e1 Added Reference https://git.kernel.org/stable/c/5fdc1474e678eea1700aa266c0b7c2c96f81dd0d Added Reference https://git.kernel.org/stable/c/64c61b4ac645222fa7b724cef616c1f862a72a40 Removed Reference https://git.kernel.org/stable/c/279bde3bbb0ac0bad5c729dfa85983d75a5d7641 Removed Reference https://git.kernel.org/stable/c/28c4d9bc0708956c1a736a9e49fee71b65deee81 Removed Reference https://git.kernel.org/stable/c/4913592a3358f6ec366b8346b733d5e2360b08e1 Removed Reference https://git.kernel.org/stable/c/5fdc1474e678eea1700aa266c0b7c2c96f81dd0d Removed Reference https://git.kernel.org/stable/c/64c61b4ac645222fa7b724cef616c1f862a72a40 -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Oct. 15, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2025-40242', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-10-15T21:58:20.770505Z'} -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 30, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'd1340f80f0b8066321b499a376780da00560e857', 'lessThan': '5fdc1474e678eea1700aa266c0b7c2c96f81dd0d', 'versionType': 'git'}, {'status': 'affected', 'version': 'd1340f80f0b8066321b499a376780da00560e857', 'lessThan': '4913592a3358f6ec366b8346b733d5e2360b08e1', 'versionType': 'git'}, {'status': 'affected', 'version': 'd1340f80f0b8066321b499a376780da00560e857', 'lessThan': '279bde3bbb0ac0bad5c729dfa85983d75a5d7641', 'versionType': 'git'}, {'status': 'affected', 'version': 'd1340f80f0b8066321b499a376780da00560e857', 'lessThan': '64c61b4ac645222fa7b724cef616c1f862a72a40', 'versionType': 'git'}, {'status': 'affected', 'version': 'd1340f80f0b8066321b499a376780da00560e857', 'lessThan': '28c4d9bc0708956c1a736a9e49fee71b65deee81', 'versionType': 'git'}, {'status': 'affected', 'version': '6aa628c45875e7b8cca81ed9447a12a0e8f3504a', 'versionType': 'git'}, {'status': 'affected', 'version': 'a97e75203733be0a4263a78fb7b29352be150c1c', 'versionType': 'git'}, {'status': 'affected', 'version': '3554b46204e67333e1fb8be0e93936fb08267c80', 'versionType': 'git'}, {'status': 'affected', 'version': '5cff77b9827a956d076168b56775aad23bce87e4', 'versionType': 'git'}, {'status': 'affected', 'version': '8deedce385d220f90e435f534d71d27526273515', 'versionType': 'git'}, {'status': 'affected', 'version': '2225a5cd2fbc2ef0e0f78e585db3844f60416a39', 'versionType': 'git'}, {'status': 'affected', 'version': '02e838963fdaa6ce8570b5389aecdc6cf1fb40b0', 'versionType': 'git'}, {'status': 'affected', 'version': '01eb3106f43335fdc02111358dae80a5c3fd324d', 'versionType': 'git'}, {'status': 'affected', 'version': '4.4.284', 'lessThan': '4.5', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.9.283', 'lessThan': '4.10', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.14.247', 'lessThan': '4.15', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.19.207', 'lessThan': '4.20', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.4.148', 'lessThan': '5.5', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.10.67', 'lessThan': '5.11', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.13.19', 'lessThan': '5.14', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.14.6', 'lessThan': '5.15', 'versionType': 'semver'}], 'programFiles': ['fs/gfs2/lock_dlm.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.15'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.15', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.168', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.131', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.56', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.17.6', 'versionType': 'semver', 'lessThanOrEqual': '6.17.*'}, {'status': 'unaffected', 'version': '6.18', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/gfs2/lock_dlm.c'], 'defaultStatus': 'affected'}] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 11, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/5fdc1474e678eea1700aa266c0b7c2c96f81dd0d -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 02, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/4913592a3358f6ec366b8346b733d5e2360b08e1 -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 04, 2025
Action Type Old Value New Value Added 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. Added Reference https://git.kernel.org/stable/c/279bde3bbb0ac0bad5c729dfa85983d75a5d7641 Added Reference https://git.kernel.org/stable/c/28c4d9bc0708956c1a736a9e49fee71b65deee81 Added Reference https://git.kernel.org/stable/c/64c61b4ac645222fa7b724cef616c1f862a72a40