Executive brief
A vulnerability in the Linux kernel's NFSv4 client implementation can cause a system crash (kernel panic) when performing file copy operations between locations on the same NFS server. This occurs due to a technical error during state recovery, leading to a complete denial of service for the affected machine. While it does not directly expose data, it can disrupt business operations and server availability.
Technical details
A NULL-pointer dereference vulnerability exists in the NFSv4 client component of the Linux kernel, specifically within the nfs42_complete_copies() function. The issue is triggered when an NFS client attempts to copy files between different locations on the same NFS server and encounters a state recovery failure (e.g., error -116). During this process, the kernel attempts to access a memory address through a NULL pointer, resulting in an 'Oops' and system crash. The vulnerability is classified as CWE-476. Patches have been released across multiple stable kernel branches (e.g., 5.15.y, 6.1.y, 6.6.y) to ensure proper pointer validation before access.
Affected products
- Linux Linux Kernel 5.15.131-9 and other versions prior to fix
Timeline
- 2024-10-01: patched: Initial fix authored by Yanjun Zhang
- 2024-10-21: advisory: CVE-2024-50046 published
References
- https://git.kernel.org/stable/c/584c019baedddec3fd634053e8fb2d8836108d38
- https://git.kernel.org/stable/c/632344b9efa064ca737bfcdaaaced59fd5f18ae9
- https://git.kernel.org/stable/c/a848c29e3486189aaabd5663bc11aea50c5bd144
- https://git.kernel.org/stable/c/ef9189bb15dcbe7ed3f3515aaa6fc8bf7483960d
- https://git.kernel.org/stable/c/f892165c564e3aab272948dbb556cc20e290c55a
- https://git.kernel.org/stable/c/fca41e5fa4914d12b2136c25f9dad69520b52683
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html