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=1795098960; b=Z+a/a7VaASihXhxEKoScEKydDCce/N2/xYde6FunV7n+/g+5WqUaXNpw944r/sx9NyIJ IUMG8n0vgSbmlUsKnz4XeRZ0CmUrv9uV0z4Jfm/S8Vo+FyBloYHCEnhIdAkaUeusBPTqy WxD9Fkn2fuSf4FUOnZaV4//zbckGki/h5dKnT5RzQ4P9O038+C4jP/8foFsUQFUk7yV6p XZEgJgA95+ly4Dc99kpaUL2cgQIQQlllmBDE+8KPT5f+/M/i3S7FRrcvPsl96w3UL5GTw UqxC3AJM6Dlez8DTj6ARaIiV0ssEXMwv2zBuhRhudX/6c+0mICrMeth/2ZxtF25dWjg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795098960; 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=7NPyhQcLnjtSfaf5zkLahdIKa5UIquQrQFtYRWicJys=; b=0PtbsvX1KHMda8jcGUEV1+aC8xNwMcSMRFNlvekdvMSen+QEWze4NOL0EQn+yTTNDAXj GNJdcNRG0g29MmRnBR7jB3nm3SZLurQMOjw7X10mAcJNoDn/gv8ExIm/dtX+55FYIi+ia C0UFtXSQT/z5iQOnLwwY2Z8s/GtEofE3gCC3EZYWonDSARRhRlJ+0YFGSP0mqkG1K8RHe cGhZV0YcBJcDniVPnsnzk6MRWNmAt3WEdeOwZIw80s5u7iBzV5iS73yyp/p2hVS2YvhIN BxNDnq2n1w3N0Iz8nPaJNRexrVCAUOhDqicFzxiei0x1LH1K0OelusQLbacJ6idHskA== 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=eOqhfuN3; 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 72DB8606A32A for ; Thu, 19 Nov 2026 14:36:00 +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=eOqhfuN3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8E8C1F00925; Thu, 19 Nov 2026 14:35:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795098960; bh=7NPyhQcLnjtSfaf5zkLahdIKa5UIquQrQFtYRWicJys=; h=From:To:Cc:Subject:Date:Reply-To; b=eOqhfuN3cOunDGUmL3AHmQ6WE+p+1W5Vd1D7Et3JahvJ1x6BSkL5bKO32XX/YaO02 GkFsuD/WxaLNZJ2NdXxzVv61HWYIya62GnbCr1g4Q/7DeCKJRsbWrwxiwHAOszuaHL 7cl9tz+8bWAFNW4W9/tI2kUgyLWog+MHCYNfYqxc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99353: SUNRPC: Reject a socket that already has an svc_sock attached Date: Thu, 19 Nov 2026 15:24:11 +0100 Message-ID: <2026111948-CVE-2026-99353-b0aa@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=3804; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GvKs/9GLjLJpRbZCCuI2d593lqaLkD+Ucv6CsDWGdd8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2UpunLz2qqIz5W/u41CJR98f3duT2GuutnbNytcPr 3HP8TCx6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ/PzCMM/0S+2lhb2c2+7t l7/Of9N/wuwFU9oZ5hdtfnVkZTTrZl3udIe7++xSlj0UlgIA 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: SUNRPC: Reject a socket that already has an svc_sock attached Writing the same socket descriptor to /proc/fs/nfsd/portlist twice attaches a second svc_sock to one socket. svc_setup_socket() saves the socket's callbacks before installing its own, so the second attach records svc_write_space() as the old write_space callback. svc_udp_init() invokes that callback by way of svc_sock_setbufsize(), and svc_write_space() then calls itself until the kernel stack is exhausted: BUG: TASK stack guard page was hit at ffffc900037d7ff8 svc_write_space+0x90/0x2b0 net/sunrpc/svcsock.c:429 svc_write_space+0xe6/0x2b0 net/sunrpc/svcsock.c:430 ... 700 more ... svc_sock_setbufsize+0x18d/0x220 net/sunrpc/svcsock.c:386 svc_udp_init net/sunrpc/svcsock.c:854 [inline] svc_setup_socket+0xb2f/0x1090 net/sunrpc/svcsock.c:1498 svc_addsock+0x2fd/0x760 net/sunrpc/svcsock.c:1547 __write_ports_addfd fs/nfsd/nfsctl.c:742 [inline] write_ports+0xa5b/0xcc0 fs/nfsd/nfsctl.c:861 nfsctl_transaction_write+0x106/0x1a0 fs/nfsd/nfsctl.c:112 svc_data_ready() and svc_tcp_state_change() chain through their saved callbacks the same way, so a TCP descriptor added twice recurses on the next incoming segment instead. Reaching any of this takes a writer on portlist, and the nfsd filesystem sets no FS_USERNS_MOUNT, so the reproducer needs CAP_SYS_ADMIN in the initial user namespace. Reject a socket that already carries sk_user_data. svc_setup_socket() overwrites that field unconditionally, so a socket some other consumer has claimed is one NFSD would corrupt whether or not the callbacks recurse. The Linux kernel CVE team has assigned CVE-2026-99353 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.19 with commit b41b66d63c730cc45a1024e1f1e67439e507e40f and fixed in 6.12.117 with commit 514ce838b4f26780fa31da7d7f1e30d696ea6a9e Issue introduced in 2.6.19 with commit b41b66d63c730cc45a1024e1f1e67439e507e40f and fixed in 6.18.61 with commit f44daa50489fede01012c575d9f5e7b11a212fe4 Issue introduced in 2.6.19 with commit b41b66d63c730cc45a1024e1f1e67439e507e40f and fixed in 7.3.2 with commit 42923e0fc817a7e78d1a5e7cb82966d27919e332 Issue introduced in 2.6.19 with commit b41b66d63c730cc45a1024e1f1e67439e507e40f and fixed in 7.4-rc1 with commit 0995447b8059c4d23853cdcddbe789c4a2b6bb88 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-99353 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: net/sunrpc/svcsock.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/514ce838b4f26780fa31da7d7f1e30d696ea6a9e https://git.kernel.org/stable/c/f44daa50489fede01012c575d9f5e7b11a212fe4 https://git.kernel.org/stable/c/42923e0fc817a7e78d1a5e7cb82966d27919e332 https://git.kernel.org/stable/c/0995447b8059c4d23853cdcddbe789c4a2b6bb88