Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795099394; b=HgUBv0xJlKJk9zmiBM0/Ppk0rYN5cttfUlh4yIKuW+FqF4pbb17c2wviBve9ZQKh+j02 WlCZDcosxBQK2ZgNo1pyqF7kCyUd4c5KnhFefxQZrjJoj0hGscGgB0fiH6MMr9ztOCXRH +J3eVV61UgCfTrJTlVHTHus+l3b3b6bYVTZZi40EarCQis03wlLhMbCo2zNuIzsoD4Bgk 1tHoKrNdAePJztqltYKtoiFt4NcqX1lO0bnyGPgp28DNlgb3fkYc4FCXtdhFBIab+Saxg /99x7zrrIWZUGtvMBR9pY3AKNgSXOEVDILyrVlKmIY+5QgOsz8N/wv+eOIwDxmR/pZg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099394; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=viYn9prxjCisZLw4rNvWHwMAj2jSmNPfX69JG+HPc4s=; b=HNwjJnX1oxwAUIZ5vCmJNsWiytEBKUhpucGdPRlMM/Yha2/v3sefCGObI8AYT/KVjMtC UZlK9WuUSSYJjDswEgjCxJoyeM9+ov2RdvT03jI+lccXkWei915V7VyasVpmFpsvm8rXg kH/9D9yscU4Mo801eQYRIN2m2WQ4x6fW+tu0UNnizfKUTtrcq2WLcl//IbM4/0TSlAam9 jk8pfUNe7An1NSzC6tvr+QeVFj+3Uj7kyYCEbHuByOJ4q7kBKfOGnInEMWiwxK7i5KyLR WPLXlKoCuvkaMp3nCO/lR3zF46ZKfe56EeC05s/kNf23N4YxONqx2kGyX8cpfZ9k7NA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=BbRO7hsZ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1AD45606A325 for ; Thu, 19 Nov 2026 14:43:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=BbRO7hsZ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 626EA1F000C8; Thu, 19 Nov 2026 14:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099393; bh=viYn9prxjCisZLw4rNvWHwMAj2jSmNPfX69JG+HPc4s=; h=From:To:Cc:Subject:Date:Reply-To; b=BbRO7hsZeSCU8iDPg1B7Ual+4PWkIZoILPBlA21+ZOWloAqKTxjrJ0JsBcUF7Ntp0 dEkaPnnUAI/KK3IdoSeI8SAA5F0v+nBWWJsu8Wn+u+dzrtOPXGVbOdvsqKF5HQPc45 foGRziU100lF1Cf7osWC62VQLcB+RHetn3S/78xo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99372: NFSD: cap the number of listeners accepted in listener_set Date: Thu, 19 Nov 2026 15:24:30 +0100 Message-ID: <2026111952-CVE-2026-99372-84e7@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3203; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sj2nm8wimULk/NAXCFeEbGaC++fYcTZ+JcyLWq7drLg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2Srsbnfsup/sazUzj+1qVouKntCNhf8Mcl0uvb41X fnKyg/aHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRS7IM8zOK81X4XywwOH39 6iVhN9UfzkH3zjDMsxLor5jfu+p8sdyz/2Hl6kqMYsYvAA== 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: NFSD: cap the number of listeners accepted in listener_set nfsd_nl_listener_set_doit() matches each requested listener against the existing set. The nested loop that does this is O(N * M), where N is the requested count and M is the existing count. The loop runs under sv_lock with bottom halves disabled. A userland request with a very large listener list can therefore spin in atomic context for a long time. Reject a request that carries more than NFSD_NL_LISTENER_MAX (1024) entries. The check goes in nfsd_nl_validate_listeners(), before the code takes any lock. The limit is far above any realistic configuration. This patch does not cap M. Only the message size bounded N; real sockets bound M. A listener_set result set is the requested set, so that path also holds M at the cap, but __write_ports_addxprt() adds two listeners per call and removes none, so repeated calls can push M past it. The worst case under sv_lock is therefore 1024 * M, plus 1024 nla_parse_nested() calls. Both interfaces require CAP_NET_ADMIN. The Linux kernel CVE team has assigned CVE-2026-99372 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 16a471177496c8e04a9793812c187a2c1a2192fa and fixed in 6.12.117 with commit 4a6c685d7e443d5c12197d01576202544247d107 Issue introduced in 6.10 with commit 16a471177496c8e04a9793812c187a2c1a2192fa and fixed in 6.18.61 with commit f256b39c64e956d9db46c5a42be99f9fe9685919 Issue introduced in 6.10 with commit 16a471177496c8e04a9793812c187a2c1a2192fa and fixed in 7.3.2 with commit 340fd5acb07f0299e71afc54a4a4b32e129177c4 Issue introduced in 6.10 with commit 16a471177496c8e04a9793812c187a2c1a2192fa and fixed in 7.4-rc1 with commit 9a05e5ee0a98b9550521df86936b5f825bc07ec2 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-2026-99372 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/nfsctl.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/4a6c685d7e443d5c12197d01576202544247d107 https://git.kernel.org/stable/c/f256b39c64e956d9db46c5a42be99f9fe9685919 https://git.kernel.org/stable/c/340fd5acb07f0299e71afc54a4a4b32e129177c4 https://git.kernel.org/stable/c/9a05e5ee0a98b9550521df86936b5f825bc07ec2