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].
History

Mon, 20 Jan 2025 14:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Sun, 19 Jan 2025 12:00:00 +0000

Type Values Removed Values Added
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].
Title netfs: Fix enomem handling in buffered reads
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published: 2025-01-19T11:52:45.427Z

Updated: 2025-05-04T10:06:50.545Z

Reserved: 2025-01-19T11:50:08.376Z

Link: CVE-2024-57928

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2025-01-19T12:15:26.903

Modified: 2025-01-19T12:15:26.903

Link: CVE-2024-57928

cve-icon Redhat

Severity : Low

Publid Date: 2025-01-19T00:00:00Z

Links: CVE-2024-57928 - Bugzilla