CVE-2024-57927 Details
Description
In the Linux kernel, the following vulnerability has been resolved: nfs: Fix oops in nfs_netfs_init_request() when copying to cache When netfslib wants to copy some data that has just been read on behalf of nfs, it creates a new write request and calls nfs_netfs_init_request() to initialise it, but with a NULL file pointer. This causes nfs_file_open_context() to oops - however, we don't actually need the nfs context as we're only going to write to the cache. Fix this by just returning if we aren't given a file pointer and emit a warning if the request was for something other than copy-to-cache. Further, fix nfs_netfs_free_request() so that it doesn't try to free the context if the pointer is NULL.
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/13a07cc81e2d116cece727a83746c74b87a9d417 | kernel.org | Patch |
| https://git.kernel.org/stable/c/86ad1a58f6a9453f49e06ef957a40a8dac00a13f | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
| CWE-476 | NULL Pointer Dereference | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.12, < 6.12.10 6.13 rc1 6.13 rc2 6.13 rc3 6.13 rc4 6.13 rc5 6.13 rc6 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Jan 31, 2025 | Initial Analysis | [email protected] |
| Jan 19, 2025 | New CVE Received | kernel.org |