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

netfs: Fix readahead synchronisation issues by loading all folios upfront

There are some synchronisation issues that derive from the app thread
adding more folios to the rolling buffer whilst the collector thread is
looking at them or trying to clear them, such as determining the setting of
front_folio_order when the next folio hasn't been added yet,

The reason for the rolling buffer approach is that loading the buffer
upfront and then dropping all the refs just acquired is quite a slow
operation, and loading progressively allows some of the cost to be deferred
until after at least some of the I/O is started.

Instead, a better way is to load all the folios into the rolling buffer
upfront - and then drop the refs later, once the I/O is in progress. (Even
better would be for the refs not to be there at all.)

Fix this by changing the rolling buffer loader to load all the folios
selected by the VM for readahead upfront into the folio queue. The folio
queue is allocated a batch worth at a time as we don't know how many folios
are involved (the readahead_control struct, alas, has a page count, not a
folio count).

The folio refs acquired from readahead are then dropped in bulk once the
first subrequest is dispatched as it's quite a slow operation. The
collector waits for NETFS_RREQ_NEED_PUT_RA_REFS to be cleared so that it
doesn't unlock folios before the xarray has been scanned for them.

This simplifies the buffer handling later and isn't noticeably slower as
the xarray doesn't need to be modified and the folios are all already
pre-locked.
Published: 2026-09-25
Score: n/a
EPSS: n/a
KEV: No
Impact: Potential Denial of Service from race condition in netfs readahead
Action: Update Kernel
AI Analysis

Impact

The vulnerability arises because the application thread can add new folios to a rolling buffer while the collector thread simultaneously examines or clears that same buffer. This race can cause the collector to work with an incomplete or missing folio, potentially leading to kernel panics or corrupted memory. The fix changes the loader to bring all desired folios into the buffer upfront, eliminating the concurrent modification issue. The primary impact is a possibility of denial of service or data corruption if the race condition is triggered during normal operation.

Affected Systems

All Linux kernel releases that include the rolling buffer implementation for netfs prior to the fix in commit 8c9b3394 are affected. This applies to every distribution that ships one of those kernel versions, as the vulnerable code resides in the core kernel.

Risk and Exploitability

No CVSS score is available and the EPSS score is unavailable, so the exact severity and likelihood cannot be quantified from the available data. The issue is a race condition (CWE‑368) that is internal to the kernel and does not require privileged input. While an attacker could try to trigger the race with concurrent file operations, no public exploit has been reported. The risk is considered low to moderate under typical workloads but could be serious in environments that run heavy or concurrent network filesystem operations.

Generated by OpenCVE AI on September 25, 2026 at 12:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel patch that includes commit 8c9b3394 or a later release that contains the netfs readahead fix.
  • If a kernel upgrade cannot be performed immediately, reduce or disable netfs readahead usage and limit concurrent access patterns to mitigate the race condition.
  • Continuously monitor system logs for netfs-related crashes or abnormal behavior and apply the patch as soon as it becomes available.

Generated by OpenCVE AI on September 25, 2026 at 12:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 25 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-368

Fri, 25 Sep 2026 10:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: netfs: Fix readahead synchronisation issues by loading all folios upfront There are some synchronisation issues that derive from the app thread adding more folios to the rolling buffer whilst the collector thread is looking at them or trying to clear them, such as determining the setting of front_folio_order when the next folio hasn't been added yet, The reason for the rolling buffer approach is that loading the buffer upfront and then dropping all the refs just acquired is quite a slow operation, and loading progressively allows some of the cost to be deferred until after at least some of the I/O is started. Instead, a better way is to load all the folios into the rolling buffer upfront - and then drop the refs later, once the I/O is in progress. (Even better would be for the refs not to be there at all.) Fix this by changing the rolling buffer loader to load all the folios selected by the VM for readahead upfront into the folio queue. The folio queue is allocated a batch worth at a time as we don't know how many folios are involved (the readahead_control struct, alas, has a page count, not a folio count). The folio refs acquired from readahead are then dropped in bulk once the first subrequest is dispatched as it's quite a slow operation. The collector waits for NETFS_RREQ_NEED_PUT_RA_REFS to be cleared so that it doesn't unlock folios before the xarray has been scanned for them. This simplifies the buffer handling later and isn't noticeably slower as the xarray doesn't need to be modified and the folios are all already pre-locked.
Title netfs: Fix readahead synchronisation issues by loading all folios upfront
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-25T10:36:02.924Z

Reserved: 2026-09-25T10:25:14.317Z

Link: CVE-2026-98118

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:43.030

Modified: 2026-09-25T11:17:43.030

Link: CVE-2026-98118

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T13:45:18Z

Weaknesses
  • CWE-368

    Context Switching Race Condition