{"id":"CVE-2026-31403","aliases":["CVE-2026-31403"],"related":[],"kind":"vulnerability","state":"published","title":"NFSD: Hold net reference for the lifetime of /proc/fs/nfs/exports fd","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nNFSD: Mantener la referencia de red durante la vida útil del fd /proc/fs/nfs/exports\n\nLa entrada proc /proc/fs/nfs/exports se crea en la inicialización del módulo y persiste durante la vida útil del módulo. exports_proc_open() captura el espacio de nombres de red actual del llamador y almacena su svc_export_cache en seq -> private, pero no toma ninguna referencia sobre el espacio de nombres. Si el espacio de nombres se desmantela posteriormente (p. ej., destrucción del contenedor después de que el abridor haga setns() a un espacio de nombres diferente), nfsd_net_exit() llama a nfsd_export_shutdown() que libera la caché. Lecturas posteriores en el fd aún abierto desreferencian el cache_detail liberado, recorriendo una tabla hash liberada.\n\nMantener una referencia sobre la struct net durante la vida útil del descriptor de archivo abierto. Esto evita que nfsd_net_exit() se ejecute -- y por lo tanto evita que nfsd_export_shutdown() libere la caché -- mientras cualquier fd de exportaciones esté abierto. cache_detail ya almacena su puntero de red (cd -> net, establecido por cache_create_net()), por lo que exports_release() puede recuperarlo sin almacenamiento adicional por archivo.","source":"nvd"}],"published":"2026-04-03T15:16:06.444Z","modified":"2026-11-10T13:18:51.360Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5","fixed":"76740c28050dc6db2f5550f1325b00a11bbb3255","status":"affected"},{"type":"git","introduced":"96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5","fixed":"c7f406fb341d6747634b8b1fa5461656e5e56076","status":"affected"},{"type":"git","introduced":"96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5","fixed":"d1a19217995df9c7e4118f5a2820c5032fef2945","status":"affected"},{"type":"git","introduced":"96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5","fixed":"e3d77f935639e6ae4b381c80464c31df998d61f4","status":"affected"},{"type":"git","introduced":"96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5","fixed":"db4a9f99b12a7ee1c19d86c83a3b752c7effa6c6","status":"affected"},{"type":"git","introduced":"96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5","fixed":"6a8d70e2ad6aad2c345a5048edcb8168036f97d6","status":"affected"},{"type":"git","introduced":"96d851c4d28de8cc83fe2bd5c6bc2eb8f253a6c5","fixed":"e7fcf179b82d3a3730fd8615da01b087cc654d0b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.9","status":"unaffected"},{"type":"semver","introduced":"5.10.253","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"6.1.167","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.130","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.78","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.20","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.10","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.9","fixed":"5.10.253"},{"status":"affected","introduced":"5.11","fixed":"6.1.167"},{"status":"affected","introduced":"6.2","fixed":"6.6.130"},{"status":"affected","introduced":"6.7","fixed":"6.12.78"},{"status":"affected","introduced":"6.13","fixed":"6.18.20"},{"status":"affected","introduced":"6.19","fixed":"6.19.10"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/76740c28050dc6db2f5550f1325b00a11bbb3255","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c7f406fb341d6747634b8b1fa5461656e5e56076","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d1a19217995df9c7e4118f5a2820c5032fef2945","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3d77f935639e6ae4b381c80464c31df998d61f4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/db4a9f99b12a7ee1c19d86c83a3b752c7effa6c6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6a8d70e2ad6aad2c345a5048edcb8168036f97d6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e7fcf179b82d3a3730fd8615da01b087cc654d0b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:08:54.794Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31403","url":"https://www.cve.org/CVERecord?id=CVE-2026-31403","licence":"CVE Terms of Use","modified":"2026-11-10T12:43:55.251Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31403","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31403","licence":"Public domain","modified":"2026-11-10T13:18:51.360Z"}],"updatedAt":"2026-11-25T22:59:17.907Z","epss":{"score":0.00186,"percentile":0.08585,"date":"2026-12-01T12:00:22.000Z"}}