CVE-2024-57928 Details
Description
In the Linux kernel, the following vulnerability has been resolved: netfs: Fix enomem handling in buffered reads If netfs_read_to_pagecache() gets an error from either ->prepare_read() or from netfs_prepare_read_iterator(), it needs to decrement ->nr_outstanding, cancel the subrequest and break out of the issuing loop. Currently, it only does this for two of the cases, but there are two more that aren't handled. Fix this by moving the handling to a common place and jumping to it from all four places. This is in preference to inserting a wrapper around netfs_prepare_read_iterator() as proposed by Dmitry Antipov[1].
A vulnerability in the Linux kernel's netfs component has been addressed, specifically related to memory management during buffered read operations. The issue arose in the netfs_read_to_pagecache() function, which failed to properly handle errors from the ->prepare_read() method and the netfs_prepare_read_iterator(). When an error occurred, the function needed to decrement the ->nr_outstanding counter, cancel the subrequest, and exit the issuing loop. However, this error handling was only implemented for two of the four relevant cases. The vulnerability has been fixed by consolidating the error handling into a common location, allowing it to be applied consistently across all four cases, rather than using a wrapper around netfs_prepare_read_iterator() as initially suggested.
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.
No SSVC data is available for this CVE.
References 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/105549d09a539a876b7c3330ab52d8aceedad358 | kernel.org | Patch |
| https://git.kernel.org/stable/c/88ecdfea1b333de5c51442b45cd549eeadf01852 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
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
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Sep 26, 2025 | Initial Analysis | [email protected] |
| Jan 19, 2025 | New CVE Received | kernel.org |