# CVE-2024-57927: nfs: Fix oops in nfs_netfs_init_request() when copying to cache

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-01-19T11:52:44.567Z
- Modified: 2026-06-17T08:14:15.140Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ee4cdf7ba857a894ad1650d6ab77669cbbfa329e before 13a07cc81e2d116cece727a83746c74b87a9d417; from ee4cdf7ba857a894ad1650d6ab77669cbbfa329e before 86ad1a58f6a9453f49e06ef957a40a8dac00a13f; 6.12 (not affected: before 6.12; from 6.12.10 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 6.12 before 6.12.10; 6.13

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/13a07cc81e2d116cece727a83746c74b87a9d417> (patch)
- <https://git.kernel.org/stable/c/86ad1a58f6a9453f49e06ef957a40a8dac00a13f> (patch)

## Sources

- CVE List: [CVE-2024-57927](https://www.cve.org/CVERecord?id=CVE-2024-57927), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-57927](https://nvd.nist.gov/vuln/detail/CVE-2024-57927), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-57927 · Whole record: https://cve.day/CVE-2024-57927.json · Rebuilt by cve.day 2026-11-25T22:58:51.137Z
