SUNRPC: Reject a socket that already has an svc_sock attached (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.22 % · percentile 13 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
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.
References
- https://git.kernel.org/stable/c/bcc27e675d5da0766c1833217ed8e1a802377ad6
- https://git.kernel.org/stable/c/aa549d480fbb1e7ae4f7603040abe43c98abae29
- https://git.kernel.org/stable/c/b777afc4e25d0dce306a114466fc5ecb1b40274b
- https://git.kernel.org/stable/c/86e3096c0644825e2549b02900b633b80782e895
- 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
European references
- ENISA EUVD · EUVD-2026-130011
- GCVE · GCVE-0-2026-99353
CERT-FR advisories
- CERTFR-2026-AVI-1639 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ b41b66d63c730cc45a1024e1f1e67439e507e40f < bcc27e675d5da0766c1833217ed8e1a802377ad6 affected : ≥ b41b66d63c730cc45a1024e1f1e67439e507e40f < aa549d480fbb1e7ae4f7603040abe43c98abae29 affected : ≥ b41b66d63c730cc45a1024e1f1e67439e507e40f < b777afc4e25d0dce306a114466fc5ecb1b40274b affected : ≥ b41b66d63c730cc45a1024e1f1e67439e507e40f < 86e3096c0644825e2549b02900b633b80782e895 affected : ≥ b41b66d63c730cc45a1024e1f1e67439e507e40f < 514ce838b4f26780fa31da7d7f1e30d696ea6a9e affected : ≥ b41b66d63c730cc45a1024e1f1e67439e507e40f < f44daa50489fede01012c575d9f5e7b11a212fe4 affected : ≥ b41b66d63c730cc45a1024e1f1e67439e507e40f < 42923e0fc817a7e78d1a5e7cb82966d27919e332 affected : ≥ b41b66d63c730cc45a1024e1f1e67439e507e40f < 0995447b8059c4d23853cdcddbe789c4a2b6bb88 Other versions : unaffected |
| Linux · Linux | affected : 2.6.19 unaffected : ≥ 0 < 2.6.19 unaffected : ≥ 5.10.275 ≤ 5.10.* unaffected : ≥ 5.15.226 ≤ 5.15.* unaffected : ≥ 6.1.193 ≤ 6.1.* unaffected : ≥ 6.6.163 ≤ 6.6.* unaffected : ≥ 6.12.117 ≤ 6.12.* unaffected : ≥ 6.18.61 ≤ 6.18.* unaffected : ≥ 7.3.2 ≤ 7.3.* unaffected : ≥ 7.4-rc1 ≤ * Other versions : affected |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |