Bug 2338850 (CVE-2024-57927) - CVE-2024-57927 kernel: nfs: Fix oops in nfs_netfs_init_request() when copying to cache
Summary: CVE-2024-57927 kernel: nfs: Fix oops in nfs_netfs_init_request() when copying...
Keywords:
Status: NEW
Alias: CVE-2024-57927
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-19 12:02 UTC by OSIDB Bzimport
Modified: 2025-04-06 19:24 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-01-19 12:02:14 UTC
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.

Comment 1 Avinash Hanwate 2025-01-20 05:12:38 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025011944-CVE-2024-57927-fb00@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.