CVE-2024-57928 netfs: Fix enomem handling in buffered reads

High 7.1 Published Updated

A missing error handling path in the Linux kernel netfs subsystem can lead to a null pointer dereference and system crash during buffered reads.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-57928?

CVE-2024-57928 is a high-severity vulnerability in Linux kernel, published on 19 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-125

Which versions are affected by CVE-2024-57928?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-57928?

Apply the vendor's patch.

Is CVE-2024-57928 being exploited?

There is no known exploitation of CVE-2024-57928 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-57928, DEBIAN-CVE-2024-57928, GHSA-68mj-fhfp-mw52, UBUNTU-CVE-2024-57928.

Is CVE-2024-57928 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free