{"id":"CVE-2026-31403","published":"2026-04-03T15:16:06Z","modified":"2026-11-10T12:43:55Z","title":"NFSD: Hold net reference for the lifetime of /proc/fs/nfs/exports fd","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->private, 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->net, set by cache_create_net()), so\nexports_release() can retrieve it without additional per-file\nstorage.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00134,"percentile":0.02985,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/76740c28050dc6db2f5550f1325b00a11bbb3255","tags":[]},{"url":"https://git.kernel.org/stable/c/c7f406fb341d6747634b8b1fa5461656e5e56076","tags":[]},{"url":"https://git.kernel.org/stable/c/d1a19217995df9c7e4118f5a2820c5032fef2945","tags":[]},{"url":"https://git.kernel.org/stable/c/e3d77f935639e6ae4b381c80464c31df998d61f4","tags":[]},{"url":"https://git.kernel.org/stable/c/db4a9f99b12a7ee1c19d86c83a3b752c7effa6c6","tags":[]},{"url":"https://git.kernel.org/stable/c/6a8d70e2ad6aad2c345a5048edcb8168036f97d6","tags":[]},{"url":"https://git.kernel.org/stable/c/e7fcf179b82d3a3730fd8615da01b087cc654d0b","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]}],"priority":{"score":6.1,"factors":[{"name":"EPSS percentile","points":0.6},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5, < 76740c28050dc6db2f5550f1325b00a11bbb3255",">= 96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5, < c7f406fb341d6747634b8b1fa5461656e5e56076",">= 96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5, < d1a19217995df9c7e4118f5a2820c5032fef2945",">= 96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5, < e3d77f935639e6ae4b381c80464c31df998d61f4",">= 96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5, < db4a9f99b12a7ee1c19d86c83a3b752c7effa6c6",">= 96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5, < 6a8d70e2ad6aad2c345a5048edcb8168036f97d6",">= 96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5, < e7fcf179b82d3a3730fd8615da01b087cc654d0b"]},{"vendor":"Linux","product":"Linux","versions":["3.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T15:08:54.794541Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-18788","exploited":false,"provenance":"source"}}