CVE-2025-40242
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-12-04

Last updated on: 2026-04-11

Assigner: kernel.org

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-04
Last Modified
2026-04-11
Generated
2026-05-07
AI Q&A
2025-12-04
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a race condition in the Linux kernel's gfs2 filesystem code, specifically in the gdlm_put_lock() function. There is a small time window where the DFL_UNMOUNT flag is set but the lockspace has not yet been released. During this window, the distributed lock manager (dlm) may still call functions that dereference glock objects that have been freed, potentially leading to use-after-free errors. The fix ensures that glock objects are only freed if the lockspace has actually been released, preventing dereferencing freed objects.


How can this vulnerability impact me? :

This vulnerability could lead to kernel instability or crashes due to dereferencing freed memory objects in the filesystem lock management code. Such instability could cause system downtime or data corruption in environments using the gfs2 filesystem with distributed locking.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart