{"id":"CVE-2025-40242","summary":"gfs2: Fix unlikely race in gdlm_put_lock","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ngfs2: Fix unlikely race in gdlm_put_lock\n\nIn gdlm_put_lock(), there is a small window of time in which the\nDFL_UNMOUNT flag has been set but the lockspace hasn't been released,\nyet.  In that window, dlm may still call gdlm_ast() and gdlm_bast().\nTo prevent it from dereferencing freed glock objects, only free the\nglock if the lockspace has actually been released.","modified":"2026-04-02T12:48:20.185360Z","published":"2025-12-04T15:31:31.497Z","related":["SUSE-SU-2026:0278-1","SUSE-SU-2026:0281-1","SUSE-SU-2026:0293-1","SUSE-SU-2026:0315-1","SUSE-SU-2026:0984-1","SUSE-SU-2026:1003-1","SUSE-SU-2026:1077-1","SUSE-SU-2026:1078-1","SUSE-SU-2026:1131-1","SUSE-SU-2026:20207-1","SUSE-SU-2026:20220-1","SUSE-SU-2026:20228-1","SUSE-SU-2026:20477-1","SUSE-SU-2026:20498-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20876-1","openSUSE-SU-2026:20145-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40242.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/279bde3bbb0ac0bad5c729dfa85983d75a5d7641"},{"type":"WEB","url":"https://git.kernel.org/stable/c/28c4d9bc0708956c1a736a9e49fee71b65deee81"},{"type":"WEB","url":"https://git.kernel.org/stable/c/64c61b4ac645222fa7b724cef616c1f862a72a40"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40242.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40242"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d1340f80f0b8066321b499a376780da00560e857"},{"fixed":"279bde3bbb0ac0bad5c729dfa85983d75a5d7641"},{"fixed":"64c61b4ac645222fa7b724cef616c1f862a72a40"},{"fixed":"28c4d9bc0708956c1a736a9e49fee71b65deee81"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"6aa628c45875e7b8cca81ed9447a12a0e8f3504a"},{"last_affected":"a97e75203733be0a4263a78fb7b29352be150c1c"},{"last_affected":"3554b46204e67333e1fb8be0e93936fb08267c80"},{"last_affected":"5cff77b9827a956d076168b56775aad23bce87e4"},{"last_affected":"8deedce385d220f90e435f534d71d27526273515"},{"last_affected":"2225a5cd2fbc2ef0e0f78e585db3844f60416a39"},{"last_affected":"02e838963fdaa6ce8570b5389aecdc6cf1fb40b0"},{"last_affected":"01eb3106f43335fdc02111358dae80a5c3fd324d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40242.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"6.12.56"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40242.json"}}],"schema_version":"1.7.5"}