CVE-2024-57927: nfs: Fix oops in nfs_netfs_init_request() when copying to cache
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.
Security readout for executives and security teams
Plain-English summary
This is a Linux kernel NFS availability bug. Under affected conditions, a local low-privileged user could cause a kernel oops when NFS data is copied into cache. The business impact is service interruption, not data theft or privilege escalation based on the supplied sources.
Executive priority
Schedule remediation through normal kernel patching, with higher priority for production systems depending on NFS. Emergency action is not supported by the supplied evidence, but downtime risk justifies timely patching.
Technical view
netfslib can create a cache write request for NFS with a NULL file pointer. nfs_netfs_init_request() then calls nfs_file_open_context(), causing a NULL pointer dereference. The fix skips context setup when no file pointer exists for copy-to-cache and avoids freeing a NULL context.
Likely exposure
Exposure is most relevant to Linux systems running affected kernel versions in the 6.12 and 6.13 range and using NFS cache-related paths. The CVSS vector requires local access with low privileges and indicates high availability impact only.
Exploitation context
The supplied bundle does not show CISA KEV listing or any cited active exploitation. Treat this as a local denial-of-service risk until vendor or distribution advisories provide more operational detail.
Researcher notes
This is CWE-476 in the NFS/netfs cache request path. The authoritative evidence is the CVE text and Linux stable commits. The supplied data does not establish a remote attack path, exploit availability, or affected distribution package versions.
Mitigation direction
Update to a vendor kernel containing the referenced stable fixes.
Prioritize NFS client systems using affected 6.12 or 6.13 kernels.
Check distribution advisories for backported fixes and package names.
If patching is delayed, review vendor guidance for NFS cache workarounds.
Validation and detection
Inventory Linux kernel versions across NFS client systems.
Confirm whether deployed kernels include commits 13a07cc81e2d or 86ad1a58f6a9.
Review crash logs for kernel oops events involving nfs_netfs_init_request().
Verify patched systems no longer match affected vendor advisories.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.