Linux Kernel NFS NULL Pointer Dereference Vulnerability in Request Initialization

Vulnerability

A vulnerability in the Linux kernel's NFS implementation could lead to a NULL pointer dereference. This issue arises when netfslib attempts to copy data that has just been read for NFS. It creates a new write request and initializes it using nfs_netfs_init_request(), but without a valid file pointer. This omission causes nfs_file_open_context() to encounter a NULL pointer dereference. Although the NFS context is not needed for writing to the cache, the absence of a file pointer leads to a crash. The vulnerability has been addressed by modifying the request initialization function to return early when no file pointer is provided, while also issuing a warning if the request was intended for a purpose other than copying to cache. Additionally, the request cleanup function has been corrected to avoid attempting to free a NULL context pointer.

Impact

Exploitation of this vulnerability leads to a NULL pointer dereference, causing a kernel oops, which can disrupt system operations and potentially be exploited to escalate privileges.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.3
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.