{"id":"CVE-2026-99353","aliases":["CVE-2026-99353"],"related":[],"kind":"vulnerability","state":"published","title":"SUNRPC: Reject a socket that already has an svc_sock attached","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-19T14:22:14.718Z","modified":"2026-11-23T08:17:40.093Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b41b66d63c730cc45a1024e1f1e67439e507e40f","fixed":"bcc27e675d5da0766c1833217ed8e1a802377ad6","status":"affected"},{"type":"git","introduced":"b41b66d63c730cc45a1024e1f1e67439e507e40f","fixed":"aa549d480fbb1e7ae4f7603040abe43c98abae29","status":"affected"},{"type":"git","introduced":"b41b66d63c730cc45a1024e1f1e67439e507e40f","fixed":"b777afc4e25d0dce306a114466fc5ecb1b40274b","status":"affected"},{"type":"git","introduced":"b41b66d63c730cc45a1024e1f1e67439e507e40f","fixed":"86e3096c0644825e2549b02900b633b80782e895","status":"affected"},{"type":"git","introduced":"b41b66d63c730cc45a1024e1f1e67439e507e40f","fixed":"514ce838b4f26780fa31da7d7f1e30d696ea6a9e","status":"affected"},{"type":"git","introduced":"b41b66d63c730cc45a1024e1f1e67439e507e40f","fixed":"f44daa50489fede01012c575d9f5e7b11a212fe4","status":"affected"},{"type":"git","introduced":"b41b66d63c730cc45a1024e1f1e67439e507e40f","fixed":"42923e0fc817a7e78d1a5e7cb82966d27919e332","status":"affected"},{"type":"git","introduced":"b41b66d63c730cc45a1024e1f1e67439e507e40f","fixed":"0995447b8059c4d23853cdcddbe789c4a2b6bb88","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.19","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/bcc27e675d5da0766c1833217ed8e1a802377ad6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aa549d480fbb1e7ae4f7603040abe43c98abae29","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b777afc4e25d0dce306a114466fc5ecb1b40274b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/86e3096c0644825e2549b02900b633b80782e895","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/514ce838b4f26780fa31da7d7f1e30d696ea6a9e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f44daa50489fede01012c575d9f5e7b11a212fe4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/42923e0fc817a7e78d1a5e7cb82966d27919e332","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0995447b8059c4d23853cdcddbe789c4a2b6bb88","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99353","url":"https://www.cve.org/CVERecord?id=CVE-2026-99353","licence":"CVE Terms of Use","modified":"2026-11-23T08:01:48.593Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99353","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99353","licence":"Public domain","modified":"2026-11-23T08:17:40.093Z"}],"updatedAt":"2026-11-25T22:59:52.039Z","epss":{"score":0.00218,"percentile":0.13087,"date":"2026-12-01T12:00:22.000Z"}}