Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB7052D6E6D for ; Thu, 4 Dec 2025 15:32:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764862377; cv=none; b=Tj9BxnXQEXj/xIssEi3hGkpiv0TTkgoxmLMDX+7Disr4PVvzQbJfQgdG/LyT+EB+Vh6dl5xSFJjGF5W7X85TsTDvrmdfxK+E3CFOcuy8QPlIW9WM982Kroulv/DnBwHUx5QA8/xhorS2kk9o/7KcyD1JWRbe77sc+GFJsaO3x8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764862377; c=relaxed/simple; bh=qG9vZxAaL/6ZZJ3vEn1SKEBe6Hi/C761bC1Jf1UucQw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PONjoDu6ql8Ty52t0s5fue/GIsT++eO3UW71GCsdoZJmm+457Ie+01GD1NLJpttwkdRu3/7gpRmYhm0nHhmSy59cAIjukxkWjVBbJF3hDh0tyiUcm+ejFvX4l5NnswkhPsUODWiPBG6u/iUyXKZZCml4ro1xIfjmNOBQdmAL3xY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kb6Ca8AF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kb6Ca8AF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 750E2C4CEFB; Thu, 4 Dec 2025 15:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764862376; bh=qG9vZxAaL/6ZZJ3vEn1SKEBe6Hi/C761bC1Jf1UucQw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=kb6Ca8AFDHd2Ch4bYQsYOkU70MQRV4RCeaFvtZxtkU4tTE+bx3n4s2Wh0qMxelBir Vzkn/6hLUWRSz47xT67wqD4YqTbjYBfV+kNR0arOBdRwd4gPsizzZGfMxczQGJL2F+ WkB+zisoeWTJdA4LEpwk77ua0U9KEoa6UWOI5X20= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40242: gfs2: Fix unlikely race in gdlm_put_lock Date: Thu, 4 Dec 2025 16:32:17 +0100 Message-ID: <2025120403-CVE-2025-40242-8f73@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2051; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Pas5M/EC9YPKDKxF5BwMsFUw6SpwRmb9JmpM2JfAEZk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmGK4tfMJXpMWoW2G8us2o+F7jt07dJURaf/G/se8dv/ DT18NcDHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR3RCGuTLRVasVA6f1LHur Mmnfz2aD7+5dExnm8JlYnpP+8L5UaF99heRM0Z9L834eAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2025-40242 to this issue. Affected and fixed versions =========================== Fixed in 6.12.56 with commit 279bde3bbb0ac0bad5c729dfa85983d75a5d7641 Fixed in 6.17.6 with commit 64c61b4ac645222fa7b724cef616c1f862a72a40 Fixed in 6.18 with commit 28c4d9bc0708956c1a736a9e49fee71b65deee81 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-40242 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/gfs2/lock_dlm.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/279bde3bbb0ac0bad5c729dfa85983d75a5d7641 https://git.kernel.org/stable/c/64c61b4ac645222fa7b724cef616c1f862a72a40 https://git.kernel.org/stable/c/28c4d9bc0708956c1a736a9e49fee71b65deee81