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 B93481B372C for ; Thu, 27 Feb 2025 02:19:09 +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=1740622750; cv=none; b=qo0Bd7M4oGYm1Gy887AZCWzcC1angjChcy6F0+Rb/wC1C8R0XBcEqxXq6CDAQon3GR/uqj/fMO1dK2IEjr6/U9UY922sLC+YOxJCJocpzNa42MAiMKIm+S6QOO8LcAIpe7a6y33WtzYHQRtqtSmiFVuwMgT7ztnx/YK2kMOiiUk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622750; c=relaxed/simple; bh=L5RvVLDBu4gOnzuxfo26VZYlLnp9JiJueI20zQ+8zFk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Inr3IIxASIJQS1fcCUcXRiiEZgoOgS4rA4SjeQYbqeIj0p6u3CJQ328HYnGT9en8S69Myrz5vcHs6QH7m5sdq2iLH6Wp3Tz/1HCK48qW03+LNF0zz3da2OrwD+dFnackBFb5w1NafRQoPWt9XdB3rJkPHLdCWT2IRU367YN9gok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rX44CoTn; 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="rX44CoTn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0859AC4CEEA; Thu, 27 Feb 2025 02:19:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622749; bh=L5RvVLDBu4gOnzuxfo26VZYlLnp9JiJueI20zQ+8zFk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rX44CoTn/CmgPx4zQJQ7hN4s2No275pYc8YQWK1JpL7p/r906YTrRgyblLB0Sme0q pbtt4EA88seUFknwMVN1VcK0eRPScVYSahpSgseJR0Zl2SQiTgIZd2t9+n+7+Z57cP 0QnjyKIgpj7axCbfmTY7oikiypRAGz9vr3G+DuT4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21795: NFSD: fix hang in nfsd4_shutdown_callback Date: Wed, 26 Feb 2025 18:17:51 -0800 Message-ID: <2025022610-CVE-2025-21795-785d@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2953; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=L5RvVLDBu4gOnzuxfo26VZYlLnp9JiJueI20zQ+8zFk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T6stFwiXE3y667Xoqr41S2clLrKr2RQfluIffuC3D mvugv0HO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiKcsYFszdlfVTY1PFhkt8 CVv08zgvbTMu4WaY7+T3tbL+zqbg/f7q3jIbDi3oSxT0BgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: NFSD: fix hang in nfsd4_shutdown_callback If nfs4_client is in courtesy state then there is no point to send the callback. This causes nfsd4_shutdown_callback to hang since cl_cb_inflight is not 0. This hang lasts about 15 minutes until TCP notifies NFSD that the connection was dropped. This patch modifies nfsd4_run_cb_work to skip the RPC call if nfs4_client is in courtesy state. The Linux kernel CVE team has assigned CVE-2025-21795 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 66af25799940b26efd41ea6e648f75c41a48a2c2 and fixed in 6.1.129 with commit 38d345f612503b850c2973e5a879f88e441b34d7 Issue introduced in 5.19 with commit 66af25799940b26efd41ea6e648f75c41a48a2c2 and fixed in 6.6.79 with commit 23ad7797c74cd8f7f90617f1e59a8703e2b43908 Issue introduced in 5.19 with commit 66af25799940b26efd41ea6e648f75c41a48a2c2 and fixed in 6.12.16 with commit cedfbb92cf97a6bff3d25633001d9c44442ee854 Issue introduced in 5.19 with commit 66af25799940b26efd41ea6e648f75c41a48a2c2 and fixed in 6.13.4 with commit e88d2451cd42e025465d6b51fd716a47b0b3800d Issue introduced in 5.19 with commit 66af25799940b26efd41ea6e648f75c41a48a2c2 and fixed in 6.14-rc3 with commit 036ac2778f7b28885814c6fbc07e156ad1624d03 Issue introduced in 5.10.220 with commit 67ef9e5fd737eab2495f2586df7e9ea30caa1b77 Issue introduced in 5.15.154 with commit 26540b8940a2e21582afa61a6fb8af87310bac72 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-21795 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/nfsd/nfs4callback.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/38d345f612503b850c2973e5a879f88e441b34d7 https://git.kernel.org/stable/c/23ad7797c74cd8f7f90617f1e59a8703e2b43908 https://git.kernel.org/stable/c/cedfbb92cf97a6bff3d25633001d9c44442ee854 https://git.kernel.org/stable/c/e88d2451cd42e025465d6b51fd716a47b0b3800d https://git.kernel.org/stable/c/036ac2778f7b28885814c6fbc07e156ad1624d03