Skip to content
Heist/ feed
Unrated

NFS: fix delegation_hash_table leak when nfs4_server_common_setup() fails

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: NFS: fix delegation_hash_table leak when nfs4_server_common_setup() fails nfs4_server_common_setup() allocates server->delegation_hash_table first, but server->destroy - the only path that frees the table via nfs4_destroy_server() - is not assigned until the very end of the function. If any intermediate step fails (the is_ds_only_client() check, nfs4_init_session(), nfs4_get_rootfh(), or nfs_probe_server()), the function returns with server->destroy still NULL, so the caller's nfs_free_server() skips the destroy callback and the hash table is leaked (4 KiB per attempt with the default delegation watermark). This is trivially reachable from userspace: every failed NFSv4 mount leaks one allocation. A client that persistently retries a mount that cannot succeed leaks kernel memory without bound. Observed in production where a Longhorn backup poller retried mount.nfs4 against an NFSv3-only server roughly 10 times per second, leaking ~3.4 GiB of unreclaimable slab (kmalloc-rnd-13-4k) per day; the node accumulated 12 GiB of leaked slab before the source was identified via the kmem:kmalloc tracepoint (call_site=nfs4_delegation_hash_alloc). Reproducer: # server exports NFSv3 only (or export path absent for v4) while :; do mount -t nfs4 :/missing /mnt; done # watch SUnreclaim in /proc/meminfo grow 4 KiB per iteration Free the table on the error paths between the allocation and the assignment of server->destroy.

Announced Source revision 1
Original source ↗

CVE-2026-89714

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-89714

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "f5b3108e6a14418b120a3c38ca589b8d6cf87627",
        "lessThan": "f3adf1643517357221422c05986d6de5df7b9913",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f5b3108e6a14418b120a3c38ca589b8d6cf87627",
        "lessThan": "0fd2b9687dae36be5b84eab39b4c627bb7ab33b3",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f5b3108e6a14418b120a3c38ca589b8d6cf87627",
        "lessThan": "2092f5b38f88be306140c77aeeeb43fc1adacacc",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/nfs/nfs4client.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.17"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.17",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.18.50",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.4",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/nfs/nfs4client.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-89714

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#35195 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement