Skip to content
Heist/ feed
High

NFSD: Hold net reference for the lifetime of /proc/fs/nfs/exports fd

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: NFSD: Hold net reference for the lifetime of /proc/fs/nfs/exports fd The /proc/fs/nfs/exports proc entry is created at module init and persists for the module's lifetime. exports_proc_open() captures the caller's current network namespace and stores its svc_export_cache in seq->private, but takes no reference on the namespace. If the namespace is subsequently torn down (e.g. container destruction after the opener does setns() to a different namespace), nfsd_net_exit() calls nfsd_export_shutdown() which frees the cache. Subsequent reads on the still-open fd dereference the freed cache_detail, walking a freed hash table. Hold a reference on the struct net for the lifetime of the open file descriptor. This prevents nfsd_net_exit() from running -- and thus prevents nfsd_export_shutdown() from freeing the cache -- while any exports fd is open. cache_detail already stores its net pointer (cd->net, set by cache_create_net()), so exports_release() can retrieve it without additional per-file storage.

Announced Source revision 1
Original source ↗

CVE-2026-31403

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-31403

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": "96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5",
        "lessThan": "76740c28050dc6db2f5550f1325b00a11bbb3255",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5",
        "lessThan": "c7f406fb341d6747634b8b1fa5461656e5e56076",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5",
        "lessThan": "d1a19217995df9c7e4118f5a2820c5032fef2945",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5",
        "lessThan": "e3d77f935639e6ae4b381c80464c31df998d61f4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5",
        "lessThan": "db4a9f99b12a7ee1c19d86c83a3b752c7effa6c6",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5",
        "lessThan": "6a8d70e2ad6aad2c345a5048edcb8168036f97d6",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5",
        "lessThan": "e7fcf179b82d3a3730fd8615da01b087cc654d0b",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/nfsd/nfsctl.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "3.9"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "3.9",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.253",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.167",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.130",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.78",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.20",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "6.19.10",
        "versionType": "semver",
        "lessThanOrEqual": "6.19.*"
      },
      {
        "status": "unaffected",
        "version": "7.0",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/nfsd/nfsctl.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-31403

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

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