{"id":"CVE-2026-89702","aliases":["CVE-2026-89702"],"related":[],"kind":"vulnerability","state":"published","title":"nfsd: size fh_verify server sockaddr slot by xpt_locallen","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: size fh_verify server sockaddr slot by xpt_locallen\n\nThe nfsd_fh_verify and nfsd_fh_verify_err tracepoints declare the\nserver sockaddr slot sized by xpt_remotelen but fill it from\nxpt_local using xpt_locallen:\n\n    TP_STRUCT__entry(\n            ...\n            __sockaddr(server, rqstp->rq_xprt->xpt_remotelen)\n            ...\n    )\n    TP_fast_assign(\n            ...\n            __assign_sockaddr(server, &rqstp->rq_xprt->xpt_local,\n                              rqstp->rq_xprt->xpt_locallen);\n            ...\n    )\n\nWhen xpt_locallen exceeds xpt_remotelen, __assign_sockaddr's memcpy\nwrites past the reserved ring-buffer slot. In the reverse direction\n(xpt_locallen < xpt_remotelen) the slot is oversized and the\nunwritten tail leaks prior ring-buffer contents to trace consumers.\n\nThe write-past-end case is reachable on NFS/UDP. svc_xprt_set_remote()\nis only called from svc_tcp_accept() (net/sunrpc/svcsock.c) and from\nthe RDMA connect path; svc_create_socket() for UDP calls only\nsvc_xprt_set_local(), so xpt_remotelen stays 0 for the xprt's\nlifetime. Every fh_verify trace for an NFSv2/v3-over-UDP request\nthen copies 16 or 28 bytes from xpt_local into a zero-byte slot.\n\nThe other NFSD tracepoints that record the server address\n(NFSD_TRACE_PROC_CALL_FIELDS, NFSD_TRACE_PROC_RES_FIELDS,\nSVC_RQST_ENDPOINT_FIELDS) already size the server slot by\nxpt_locallen; nfsd_fh_verify and nfsd_fh_verify_err were the only\nexceptions.\n\nFix by sizing the server slot with xpt_locallen so the declared slot\nmatches the copy length. The client slot and its assignment already\nagree on xpt_remotelen and are left untouched.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: size fh_verify server sockaddr slot by xpt_locallen\n\nThe nfsd_fh_verify and nfsd_fh_verify_err tracepoints declare the\nserver sockaddr slot sized by xpt_remotelen but fill it from\nxpt_local using xpt_locallen:\n\n    TP_STRUCT__entry(\n            ...\n            __sockaddr(server, rqstp->rq_xprt->xpt_remotelen)\n            ...\n    )\n    TP_fast_assign(\n            ...\n            __assign_sockaddr(server, &rqstp->rq_xprt->xpt_local,\n                              rqstp->rq_xprt->xpt_locallen);\n            ...\n    )\n\nWhen xpt_locallen exceeds xpt_remotelen, __assign_sockaddr's memcpy\nwrites past the reserved ring-buffer slot. In the reverse direction\n(xpt_locallen < xpt_remotelen) the slot is oversized and the\nunwritten tail leaks prior ring-buffer contents to trace consumers.\n\nThe write-past-end case is reachable on NFS/UDP. svc_xprt_set_remote()\nis only called from svc_tcp_accept() (net/sunrpc/svcsock.c) and from\nthe RDMA connect path; svc_create_socket() for UDP calls only\nsvc_xprt_set_local(), so xpt_remotelen stays 0 for the xprt's\nlifetime. Every fh_verify trace for an NFSv2/v3-over-UDP request\nthen copies 16 or 28 bytes from xpt_local into a zero-byte slot.\n\nThe other NFSD tracepoints that record the server address\n(NFSD_TRACE_PROC_CALL_FIELDS, NFSD_TRACE_PROC_RES_FIELDS,\nSVC_RQST_ENDPOINT_FIELDS) already size the server slot by\nxpt_locallen; nfsd_fh_verify and nfsd_fh_verify_err were the only\nexceptions.\n\nFix by sizing the server slot with xpt_locallen so the declared slot\nmatches the copy length. The client slot and its assignment already\nagree on xpt_remotelen and are left untouched.","source":"cvelist"}],"published":"2026-09-11T19:46:19.537Z","modified":"2026-10-30T13:20:26.800Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"dcbebc86850324fbe0a993ce352f0539cd98038a","fixed":"4c7569ad68fc8b86ca40c7e56ef21460c0344955","status":"affected"},{"type":"git","introduced":"051382885552e12541cc0ebf82092be374a9ed2a","fixed":"50d9d581d2af80799125ee62617d37e9b6b476a7","status":"affected"},{"type":"git","introduced":"051382885552e12541cc0ebf82092be374a9ed2a","fixed":"1c6a4d6c20fd42552ffc2c3dfaed2139c9477ee5","status":"affected"},{"type":"git","introduced":"051382885552e12541cc0ebf82092be374a9ed2a","fixed":"95d064f9828a20ccca5ae90a17be3e2076f25272","status":"affected"},{"type":"git","introduced":"051382885552e12541cc0ebf82092be374a9ed2a","fixed":"7ff8d6363cffff45654ea85e319f7c0c54226012","status":"affected"},{"type":"git","introduced":"051382885552e12541cc0ebf82092be374a9ed2a","fixed":"719a10e3f5f868c3c4ac3cf3648c5775d12034bd","status":"affected"},{"type":"git","introduced":"051382885552e12541cc0ebf82092be374a9ed2a","fixed":"71d068490098b1d23c63b2345e40675d3a1ca763","status":"affected"},{"type":"git","version":"62980365d6e894234b29f44fb2bfad4f7f8bb824","status":"affected"},{"type":"semver","introduced":"5.15.154","fixed":"5.15.224","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.109","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.50","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/4c7569ad68fc8b86ca40c7e56ef21460c0344955","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/50d9d581d2af80799125ee62617d37e9b6b476a7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1c6a4d6c20fd42552ffc2c3dfaed2139c9477ee5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/95d064f9828a20ccca5ae90a17be3e2076f25272","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7ff8d6363cffff45654ea85e319f7c0c54226012","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/719a10e3f5f868c3c4ac3cf3648c5775d12034bd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/71d068490098b1d23c63b2345e40675d3a1ca763","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89702","url":"https://www.cve.org/CVERecord?id=CVE-2026-89702","licence":"CVE Terms of Use","modified":"2026-10-30T12:32:45.423Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89702","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89702","licence":"Public domain","modified":"2026-10-30T13:20:26.800Z"}],"updatedAt":"2026-11-25T22:59:38.118Z","epss":{"score":0.00613,"percentile":0.50771,"date":"2026-12-02T12:00:21.000Z"}}