Executive brief
A vulnerability in the Linux kernel's Network File System (NFS) server could allow a local user to crash the system or potentially execute unauthorized actions. The issue occurs when the system fails to properly track active connections to certain internal files, leading to a 'use-after-free' condition when a network container is destroyed. This could impact the stability and availability of servers hosting shared files, particularly in containerized environments.
Technical details
A use-after-free vulnerability exists in the Linux kernel's NFSD implementation within the nfsctl.c component. The function exports_proc_open() captures the caller's current network namespace and stores its svc_export_cache but fails to take a reference on the namespace. If the namespace is torn down (e.g., during container destruction) while a file descriptor for /proc/fs/nfs/exports remains open, nfsd_net_exit() frees the cache. Subsequent reads on the open file descriptor dereference the freed cache_detail, leading to a kernel crash or potential privilege escalation. The fix involves holding a reference on the struct net for the lifetime of the open file descriptor to prevent premature cache destruction.
Affected products
- Linux Linux Kernel 3.9 to 5.10.253, 5.11 to 6.1.167, 6.2 to 6.6.130, 6.7 to 6.12.78, 6.13 to 6.18.20, 6.19 to 6.19.10
Timeline
- 2026-02-19: other: Vulnerability fix authored
- 2026-04-03: advisory: Initial disclosure and CVE assignment
- 2026-04-03: patched: Patches merged into various stable kernel branches
References
- https://git.kernel.org/stable/c/6a8d70e2ad6aad2c345a5048edcb8168036f97d6
- https://git.kernel.org/stable/c/76740c28050dc6db2f5550f1325b00a11bbb3255
- https://git.kernel.org/stable/c/c7f406fb341d6747634b8b1fa5461656e5e56076
- https://git.kernel.org/stable/c/d1a19217995df9c7e4118f5a2820c5032fef2945
- https://git.kernel.org/stable/c/db4a9f99b12a7ee1c19d86c83a3b752c7effa6c6
- https://git.kernel.org/stable/c/e3d77f935639e6ae4b381c80464c31df998d61f4
- https://git.kernel.org/stable/c/e7fcf179b82d3a3730fd8615da01b087cc654d0b