{"id":"CVE-2026-99353","state":"PUBLISHED","title":"SUNRPC: Reject a socket that already has an svc_sock attached","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nSUNRPC: Reject a socket that already has an svc_sock attached\n\nWriting the same socket descriptor to /proc/fs/nfsd/portlist twice\nattaches a second svc_sock to one socket. svc_setup_socket() saves\nthe socket's callbacks before installing its own, so the second\nattach records svc_write_space() as the old write_space callback.\nsvc_udp_init() invokes that callback by way of svc_sock_setbufsize(),\nand svc_write_space() then calls itself until the kernel stack is\nexhausted:\n\n  BUG: TASK stack guard page was hit at ffffc900037d7ff8\n   svc_write_space+0x90/0x2b0 net/sunrpc/svcsock.c:429\n   svc_write_space+0xe6/0x2b0 net/sunrpc/svcsock.c:430\n   ... 700 more ...\n   svc_sock_setbufsize+0x18d/0x220 net/sunrpc/svcsock.c:386\n   svc_udp_init net/sunrpc/svcsock.c:854 [inline]\n   svc_setup_socket+0xb2f/0x1090 net/sunrpc/svcsock.c:1498\n   svc_addsock+0x2fd/0x760 net/sunrpc/svcsock.c:1547\n   __write_ports_addfd fs/nfsd/nfsctl.c:742 [inline]\n   write_ports+0xa5b/0xcc0 fs/nfsd/nfsctl.c:861\n   nfsctl_transaction_write+0x106/0x1a0 fs/nfsd/nfsctl.c:112\n\nsvc_data_ready() and svc_tcp_state_change() chain through their saved\ncallbacks the same way, so a TCP descriptor added twice recurses on\nthe next incoming segment instead. Reaching any of this takes a\nwriter on portlist, and the nfsd filesystem sets no FS_USERNS_MOUNT,\nso the reproducer needs CAP_SYS_ADMIN in the initial user namespace.\n\nReject a socket that already carries sk_user_data. svc_setup_socket()\noverwrites that field unconditionally, so a socket some other\nconsumer has claimed is one NFSD would corrupt whether or not the\ncallbacks recurse.","publishedAt":"2026-11-19T14:22:14.718Z","updatedAt":"2026-11-19T14:37:04.179Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b41b66d63c730cc45a1024e1f1e67439e507e40f","status":"affected","lessThan":"514ce838b4f26780fa31da7d7f1e30d696ea6a9e","versionType":"git"},{"version":"b41b66d63c730cc45a1024e1f1e67439e507e40f","status":"affected","lessThan":"f44daa50489fede01012c575d9f5e7b11a212fe4","versionType":"git"},{"version":"b41b66d63c730cc45a1024e1f1e67439e507e40f","status":"affected","lessThan":"42923e0fc817a7e78d1a5e7cb82966d27919e332","versionType":"git"},{"version":"b41b66d63c730cc45a1024e1f1e67439e507e40f","status":"affected","lessThan":"0995447b8059c4d23853cdcddbe789c4a2b6bb88","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/svcsock.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/svcsock.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-11-19T14:42:06.048Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99353.json","commit":"ac44738435f10e6dbe2f4dd504cf13737f9cf963","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99353","state":"PUBLISHED","datePublished":"2026-11-19T14:22:14.718Z","dateUpdated":"2026-11-19T14:37:04.179Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.409Z"},"containers":{"cna":{"title":"SUNRPC: Reject a socket that already has an svc_sock attached","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nSUNRPC: Reject a socket that already has an svc_sock attached\n\nWriting the same socket descriptor to /proc/fs/nfsd/portlist twice\nattaches a second svc_sock to one socket. svc_setup_socket() saves\nthe socket's callbacks before installing its own, so the second\nattach records svc_write_space() as the old write_space callback.\nsvc_udp_init() invokes that callback by way of svc_sock_setbufsize(),\nand svc_write_space() then calls itself until the kernel stack is\nexhausted:\n\n  BUG: TASK stack guard page was hit at ffffc900037d7ff8\n   svc_write_space+0x90/0x2b0 net/sunrpc/svcsock.c:429\n   svc_write_space+0xe6/0x2b0 net/sunrpc/svcsock.c:430\n   ... 700 more ...\n   svc_sock_setbufsize+0x18d/0x220 net/sunrpc/svcsock.c:386\n   svc_udp_init net/sunrpc/svcsock.c:854 [inline]\n   svc_setup_socket+0xb2f/0x1090 net/sunrpc/svcsock.c:1498\n   svc_addsock+0x2fd/0x760 net/sunrpc/svcsock.c:1547\n   __write_ports_addfd fs/nfsd/nfsctl.c:742 [inline]\n   write_ports+0xa5b/0xcc0 fs/nfsd/nfsctl.c:861\n   nfsctl_transaction_write+0x106/0x1a0 fs/nfsd/nfsctl.c:112\n\nsvc_data_ready() and svc_tcp_state_change() chain through their saved\ncallbacks the same way, so a TCP descriptor added twice recurses on\nthe next incoming segment instead. Reaching any of this takes a\nwriter on portlist, and the nfsd filesystem sets no FS_USERNS_MOUNT,\nso the reproducer needs CAP_SYS_ADMIN in the initial user namespace.\n\nReject a socket that already carries sk_user_data. svc_setup_socket()\noverwrites that field unconditionally, so a socket some other\nconsumer has claimed is one NFSD would corrupt whether or not the\ncallbacks recurse."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b41b66d63c730cc45a1024e1f1e67439e507e40f","status":"affected","lessThan":"514ce838b4f26780fa31da7d7f1e30d696ea6a9e","versionType":"git"},{"version":"b41b66d63c730cc45a1024e1f1e67439e507e40f","status":"affected","lessThan":"f44daa50489fede01012c575d9f5e7b11a212fe4","versionType":"git"},{"version":"b41b66d63c730cc45a1024e1f1e67439e507e40f","status":"affected","lessThan":"42923e0fc817a7e78d1a5e7cb82966d27919e332","versionType":"git"},{"version":"b41b66d63c730cc45a1024e1f1e67439e507e40f","status":"affected","lessThan":"0995447b8059c4d23853cdcddbe789c4a2b6bb88","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/svcsock.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/svcsock.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/514ce838b4f26780fa31da7d7f1e30d696ea6a9e"},{"url":"https://git.kernel.org/stable/c/f44daa50489fede01012c575d9f5e7b11a212fe4"},{"url":"https://git.kernel.org/stable/c/42923e0fc817a7e78d1a5e7cb82966d27919e332"},{"url":"https://git.kernel.org/stable/c/0995447b8059c4d23853cdcddbe789c4a2b6bb88"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T14:37:04.179Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}