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 87B93338922 for ; Fri, 21 Nov 2025 10:21:47 +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=1763720507; cv=none; b=db6sxhOEfIqqgdZ29fVWuXKRRjALquk5ZY39rq6tZG9Dv9xO3p6m6ZBqXN+4RGEI3Pr8Fb9KU+lky26MQk2MN+RCr8DdbVs0R6gF6lUBVKGyb4EseubtlEWzAx8KfuVeHdZu0Ay8vwIxaW9TbIAwyAqq9hN+O/MMcsl/XrFyt+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763720507; c=relaxed/simple; bh=bc8B3duy6//T6Abqb5ihI6WC1WCcdg9ZcHp+EMuBuyY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=K8+CNjgBiXao3OfvobrSQh9nImvK3GdokdeWw/JKICgpfol6hMFj/iHvoC6FXaA41nyXj0Fy7+lbsmUyHgNvgD1yNKVsKj7GLwJaXX+doELTY3k5RjVsYlvkQUI1wrEn7iairhlTxqAL+ucyH7bMnpRhtfUhYrRYEk3QNLzEFLE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZD/3t7EQ; 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="ZD/3t7EQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90791C4CEF1; Fri, 21 Nov 2025 10:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1763720507; bh=bc8B3duy6//T6Abqb5ihI6WC1WCcdg9ZcHp+EMuBuyY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ZD/3t7EQG1vOWFskSgYJpiY9I1UGPx6M+z/+b5lQBO7OTiKQIckPw4phq0eoLX+qx rN9BdriEv0F2xI8RdQZodD54ROpqkm3w0sdUr5EiitLFKHMb3iw6lxx7y66HFF/XTi NI4rnI8Pe+1q9r2I9YB3QsZ+3yrC+brZmSCDjQXw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40210: Revert "NFSD: Remove the cap on number of operations per NFSv4 COMPOUND" Date: Fri, 21 Nov 2025 11:21:40 +0100 Message-ID: <2025112140-CVE-2025-40210-2490@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=2483; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t88Uw00tS4f/BS9ysJ/W9eZhV/s7D6hXIPxuIsdIBXk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkKtiYhEb2d2xh0t1+e2t7q5Llga0tPnZ/JRK6Qne4OO 6dFz7HsiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImcEGdY0MOvmpTzU/b27B+X 9OZqMW8L2DVvB8P88A219xp3FkV/sPeJzvis9+J/pCYvAA== 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: Revert "NFSD: Remove the cap on number of operations per NFSv4 COMPOUND" I've found that pynfs COMP6 now leaves the connection or lease in a strange state, which causes CLOSE9 to hang indefinitely. I've dug into it a little, but I haven't been able to root-cause it yet. However, I bisected to commit 48aab1606fa8 ("NFSD: Remove the cap on number of operations per NFSv4 COMPOUND"). Tianshuo Han also reports a potential vulnerability when decoding an NFSv4 COMPOUND. An attacker can place an arbitrarily large op count in the COMPOUND header, which results in: [ 51.410584] nfsd: vmalloc error: size 1209533382144, exceeds total pages, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0 when NFSD attempts to allocate the COMPOUND op array. Let's restore the operation-per-COMPOUND limit, but increased to 200 for now. The Linux kernel CVE team has assigned CVE-2025-40210 to this issue. Affected and fixed versions =========================== Fixed in 6.17.8 with commit b3ee7ce432289deac87b9d14e01f2fe6958f7f0b Fixed in 6.18-rc4 with commit 3e7f011c255582d7c914133785bbba1990441713 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-40210 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/nfs4proc.c fs/nfsd/nfs4state.c fs/nfsd/nfs4xdr.c fs/nfsd/nfsd.h fs/nfsd/xdr4.h 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/b3ee7ce432289deac87b9d14e01f2fe6958f7f0b https://git.kernel.org/stable/c/3e7f011c255582d7c914133785bbba1990441713