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 BD39E20AF77 for ; Tue, 1 Apr 2025 15:27:21 +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=1743521241; cv=none; b=V4ThsMW+TvlLlTncP09+6U1fG2thg4Fgl0usOYRSvHKlHyyoqhs7ymqRLbrA3V9JjVUmK6ltotXAiCRGFopQ2SK5ITh3/qhMLiWyWf710pmlAQDCFP75IhH+6u21WaEuM6kab0qTINvKgfRGXsv7HXIhvskL20mXSbheJosW3tk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743521241; c=relaxed/simple; bh=otoMOnQRq05kOiuYDOEm09mRLfIsbVDNxFleHS+vBxc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h72KcLs1OtEnOSPVPheaojL699+1GvtQW3Ad6GkCZ901JQuBsuis+SX994rwKQS55GGeRUO0xBFDiokQb9f9qv2+ywgJCmzFrGnaIe1AZCXPfNSfhvE6g4Nz27JuNK/s68fr8pj34pyLSUDkzYG9Vl0AsfzMubm84firXKrF1yo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cKbwG9cP; 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="cKbwG9cP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2D43C4CEE4; Tue, 1 Apr 2025 15:27:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743521241; bh=otoMOnQRq05kOiuYDOEm09mRLfIsbVDNxFleHS+vBxc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cKbwG9cPnqtz63TRBgUklpv9FH94/apQrWcgdIjBnjaC0Tfzyap/PGtk7r/8gDzfN 1VYw9fshd0AFH/rA5/Xz9wfj0hND6ZEoSOOkiXYi99sGQiv+R75KGsWm/He9diIoHz eOYsA7++WKfAWqo9OqypsM8dLvBCbfii/rWuxv+M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21900: NFSv4: Fix a deadlock when recovering state on a sillyrenamed file Date: Tue, 1 Apr 2025 16:25:36 +0100 Message-ID: <2025040133-CVE-2025-21900-8d31@gregkh> X-Mailer: git-send-email 2.49.0 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=2514; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=otoMOnQRq05kOiuYDOEm09mRLfIsbVDNxFleHS+vBxc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvWHM3CoTaZa5ompUv/8PDW0dOo7nilq/YOV3mU5yMJ b3/bJ91xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwET2bWZYMO24XPv++aKHS329 f39W3CP0XENEiGGegkHg/FrxbReenvt8m61iH1fbIQYtAA== 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: NFSv4: Fix a deadlock when recovering state on a sillyrenamed file If the file is sillyrenamed, and slated for delete on close, it is possible for a server reboot to triggeer an open reclaim, with can again race with the application call to close(). When that happens, the call to put_nfs_open_context() can trigger a synchronous delegreturn call which deadlocks because it is not marked as privileged. Instead, ensure that the call to nfs4_inode_return_delegation_on_close() catches the delegreturn, and schedules it asynchronously. The Linux kernel CVE team has assigned CVE-2025-21900 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit adb4b42d19aea91826621a8d0bac94cf2c08f8bc and fixed in 6.12.18 with commit 4fe4ae6c2e01d028856b73b6328b12b8945df871 Issue introduced in 6.11 with commit adb4b42d19aea91826621a8d0bac94cf2c08f8bc and fixed in 6.13.6 with commit f41a60bc43e7abbc636fee78bed0d74c31e738b0 Issue introduced in 6.11 with commit adb4b42d19aea91826621a8d0bac94cf2c08f8bc and fixed in 6.14 with commit 8f8df955f078e1a023ee55161935000a67651f38 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-21900 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/nfs/delegation.c fs/nfs/delegation.h fs/nfs/nfs4proc.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/4fe4ae6c2e01d028856b73b6328b12b8945df871 https://git.kernel.org/stable/c/f41a60bc43e7abbc636fee78bed0d74c31e738b0 https://git.kernel.org/stable/c/8f8df955f078e1a023ee55161935000a67651f38