{"id":"CVE-2026-89714","aliases":["CVE-2026-89714"],"related":[],"kind":"vulnerability","state":"published","title":"NFS: fix delegation_hash_table leak when nfs4_server_common_setup() fails","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFS: fix delegation_hash_table leak when nfs4_server_common_setup() fails\n\nnfs4_server_common_setup() allocates server->delegation_hash_table\nfirst, but server->destroy - the only path that frees the table via\nnfs4_destroy_server() - is not assigned until the very end of the\nfunction. If any intermediate step fails (the is_ds_only_client()\ncheck, nfs4_init_session(), nfs4_get_rootfh(), or nfs_probe_server()),\nthe function returns with server->destroy still NULL, so the caller's\nnfs_free_server() skips the destroy callback and the hash table is\nleaked (4 KiB per attempt with the default delegation watermark).\n\nThis is trivially reachable from userspace: every failed NFSv4 mount\nleaks one allocation. A client that persistently retries a mount that\ncannot succeed leaks kernel memory without bound. Observed in\nproduction where a Longhorn backup poller retried mount.nfs4 against\nan NFSv3-only server roughly 10 times per second, leaking ~3.4 GiB of\nunreclaimable slab (kmalloc-rnd-13-4k) per day; the node accumulated\n12 GiB of leaked slab before the source was identified via the\nkmem:kmalloc tracepoint (call_site=nfs4_delegation_hash_alloc).\n\nReproducer:\n\n  # server exports NFSv3 only (or export path absent for v4)\n  while :; do mount -t nfs4 <server>:/missing /mnt; done\n  # watch SUnreclaim in /proc/meminfo grow 4 KiB per iteration\n\nFree the table on the error paths between the allocation and the\nassignment of server->destroy.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFS: fix delegation_hash_table leak when nfs4_server_common_setup() fails\n\nnfs4_server_common_setup() allocates server->delegation_hash_table\nfirst, but server->destroy - the only path that frees the table via\nnfs4_destroy_server() - is not assigned until the very end of the\nfunction. If any intermediate step fails (the is_ds_only_client()\ncheck, nfs4_init_session(), nfs4_get_rootfh(), or nfs_probe_server()),\nthe function returns with server->destroy still NULL, so the caller's\nnfs_free_server() skips the destroy callback and the hash table is\nleaked (4 KiB per attempt with the default delegation watermark).\n\nThis is trivially reachable from userspace: every failed NFSv4 mount\nleaks one allocation. A client that persistently retries a mount that\ncannot succeed leaks kernel memory without bound. Observed in\nproduction where a Longhorn backup poller retried mount.nfs4 against\nan NFSv3-only server roughly 10 times per second, leaking ~3.4 GiB of\nunreclaimable slab (kmalloc-rnd-13-4k) per day; the node accumulated\n12 GiB of leaked slab before the source was identified via the\nkmem:kmalloc tracepoint (call_site=nfs4_delegation_hash_alloc).\n\nReproducer:\n\n  # server exports NFSv3 only (or export path absent for v4)\n  while :; do mount -t nfs4 <server>:/missing /mnt; done\n  # watch SUnreclaim in /proc/meminfo grow 4 KiB per iteration\n\nFree the table on the error paths between the allocation and the\nassignment of server->destroy.","source":"cvelist"}],"published":"2026-09-11T19:46:28.476Z","modified":"2026-10-19T09:18:10.373Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f5b3108e6a14418b120a3c38ca589b8d6cf87627","fixed":"f3adf1643517357221422c05986d6de5df7b9913","status":"affected"},{"type":"git","introduced":"f5b3108e6a14418b120a3c38ca589b8d6cf87627","fixed":"0fd2b9687dae36be5b84eab39b4c627bb7ab33b3","status":"affected"},{"type":"git","introduced":"f5b3108e6a14418b120a3c38ca589b8d6cf87627","fixed":"2092f5b38f88be306140c77aeeeb43fc1adacacc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","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/f3adf1643517357221422c05986d6de5df7b9913","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0fd2b9687dae36be5b84eab39b4c627bb7ab33b3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2092f5b38f88be306140c77aeeeb43fc1adacacc","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89714","url":"https://www.cve.org/CVERecord?id=CVE-2026-89714","licence":"CVE Terms of Use","modified":"2026-10-19T08:51:27.182Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89714","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89714","licence":"Public domain","modified":"2026-10-19T09:18:10.373Z"}],"updatedAt":"2026-11-25T22:59:38.123Z","epss":{"score":0.00198,"percentile":0.10023,"date":"2026-12-02T12:00:21.000Z"}}