{
  "id": "CVE-2026-31403",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31403",
  "published_at": "2026-04-03T15:16:06.444Z",
  "title": "NFSD: Hold net reference for the lifetime of /proc/fs/nfs/exports fd",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nNFSD: Hold net reference for the lifetime of /proc/fs/nfs/exports fd\n\nThe /proc/fs/nfs/exports proc entry is created at module init\nand persists for the module's lifetime. exports_proc_open()\ncaptures the caller's current network namespace and stores\nits svc_export_cache in seq-\u003eprivate, but takes no reference\non the namespace. If the namespace is subsequently torn down\n(e.g. container destruction after the opener does setns() to a\ndifferent namespace), nfsd_net_exit() calls nfsd_export_shutdown()\nwhich frees the cache. Subsequent reads on the still-open fd\ndereference the freed cache_detail, walking a freed hash table.\n\nHold a reference on the struct net for the lifetime of the open\nfile descriptor. This prevents nfsd_net_exit() from running --\nand thus prevents nfsd_export_shutdown() from freeing the cache\n-- while any exports fd is open. cache_detail already stores\nits net pointer (cd-\u003enet, set by cache_create_net()), so\nexports_release() can retrieve it without additional per-file\nstorage.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5, \u003c 76740c28050dc6db2f5550f1325b00a11bbb3255",
          "\u003e= 96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5, \u003c c7f406fb341d6747634b8b1fa5461656e5e56076",
          "\u003e= 96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5, \u003c d1a19217995df9c7e4118f5a2820c5032fef2945",
          "\u003e= 96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5, \u003c e3d77f935639e6ae4b381c80464c31df998d61f4",
          "\u003e= 96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5, \u003c db4a9f99b12a7ee1c19d86c83a3b752c7effa6c6",
          "\u003e= 96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5, \u003c 6a8d70e2ad6aad2c345a5048edcb8168036f97d6",
          "\u003e= 96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5, \u003c e7fcf179b82d3a3730fd8615da01b087cc654d0b"
        ],
        "fixed_in": [
          "76740c28050dc6db2f5550f1325b00a11bbb3255",
          "c7f406fb341d6747634b8b1fa5461656e5e56076",
          "d1a19217995df9c7e4118f5a2820c5032fef2945",
          "e3d77f935639e6ae4b381c80464c31df998d61f4",
          "db4a9f99b12a7ee1c19d86c83a3b752c7effa6c6",
          "6a8d70e2ad6aad2c345a5048edcb8168036f97d6",
          "e7fcf179b82d3a3730fd8615da01b087cc654d0b"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.9"
        ],
        "fixed_in": [
          "0",
          "5.10.253",
          "6.1.167",
          "6.6.130",
          "6.12.78",
          "6.18.20",
          "6.19.10",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 76740c28050dc6db2f5550f1325b00a11bbb3255 or c7f406fb341d6747634b8b1fa5461656e5e56076 or d1a19217995df9c7e4118f5a2820c5032fef2945 or e3d77f935639e6ae4b381c80464c31df998d61f4 or db4a9f99b12a7ee1c19d86c83a3b752c7effa6c6 or 6a8d70e2ad6aad2c345a5048edcb8168036f97d6 or e7fcf179b82d3a3730fd8615da01b087cc654d0b or later.",
      "Upgrade Linux to 0 or 5.10.253 or 6.1.167 or 6.6.130 or 6.12.78 or 6.18.20 or 6.19.10 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
