Database/Kernel, userspace & hypervisor
Linux kernel nfsd: use-after-free and RCU-context sleep when reading the export cache
Impact
The last reference to an nfsd export or export-key cache entry can be dropped from inside the procfs show handlers while they still hold an RCU read-side lock. The handler then reads ex_uuid after it has been freed (KASAN slab-use-after-free in svc_export_show) and path_put() sleeps in an atomic context. On a node that exports NFS - a storage head or a GPU node re-exporting a dataset mount - the practical outcome is a kernel crash or memory corruption while the export cache is being torn down, which takes the export and every client with it. Reaching it needs the nfsd procfs cache files, so this is a privileged-local or root-triggered stability bug rather than a tenant escalation path.
Who can reach it
Local, on a host running the in-kernel NFS server. The trigger is a read of the nfsd export cache files under /proc while the cache is being purged (for example a thread-count write that destroys the server), which is root-only in a default configuration. Not reachable from an unprivileged container or over the network.
What to do
Patch the kernel to a stable release carrying the rcu_work-based release of svc_export and svc_expkey, then reboot. Hosts that do not run the in-kernel nfsd (no nfsd module loaded) are not exposed and can take the fix on their normal kernel cadence. No vendor mitigation is published; unloading or not using nfsd removes the path.
References
Related entries
- Linux kernel (drivers/gpu/drm/xe): A tenant that suspends an exec queue and then closes it while the GuCCVE-2024-56552 · Linux kernel (drivers/gpu/drm/xe)High
- Linux kernel (drivers/iommu/iommufd): An error path releases the iommufd fault object and the iommufd context twiceCVE-2024-56624 · Linux kernel (drivers/iommu/iommufd)High
- Linux kernel amdkfd (KFD compute driver, /dev/kfd) (drm/amdkfd): An out-of-bounds access in the amdkfd (KFD computeCVE-2024-56695 · Linux kernel amdkfd (KFD compute driver, /dev/kfd) (drm/amdkfd)High
- Linux kernel RDMA/siw: stale per-device net_device link leads to use-after-free on port queryCVE-2024-57857 · Linux kernel RDMA/siw (per-device net_device link in siw_query_port)High
- Linux kernel (net/xfrm): SA lookup can observe the new hash mask before the new bucket array is published, so itCVE-2024-57982 · Linux kernel (net/xfrm)High
- Microsoft Hyper-V: Heap-based buffer overflow in the NT Kernel Integration VSPCVE-2025-21333 · Microsoft Hyper-VHigh
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.