CVE-2024-57927

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-57927
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57927.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-57927
Downstream
Published
2025-01-19T12:15:26Z
Modified
2025-01-31T15:29:09Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

nfs: Fix oops in nfsnetfsinit_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 nfsnetfsinitrequest() to initialise it, but with a NULL file pointer. This causes nfsfileopencontext() 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 nfsnetfsfree_request() so that it doesn't try to free the context if the pointer is NULL.

References

Affected packages

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.12.10-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}