CVE-2026-98118: netfs: Fix readahead synchronisation issues by loading all folios upfront

Published Sep 25, 2026
·
Updated

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 frontfolioorder 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 readaheadcontrol 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 NETFSRREQNEEDPUTRAREFS 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.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Change the rolling buffer loader to load all folios selected for readahead into the folio queue upfront, then drop the readahead-acquired folio references in bulk once I/O is in progress.

Event History

Sep 25, 2026
CVE Published
via MITRE·10:36 AM
Data Sourced
via MITRE·10:36 AM
Description

Frequently Asked Questions

1

Which systems are affected by this issue?

The issue is in the Linux kernel netfs readahead path. Systems using the affected kernel code for network filesystem readahead are the relevant exposure population; the provided data does not identify specific distributions, kernel versions, or filesystem configurations.

2

What condition leads to the synchronization problem?

The problem arises when an application thread adds folios to a rolling buffer while a collector thread is examining or clearing that buffer. This can cause synchronization errors, including attempts to determine front_folio_order before the next folio has been added.

3

What does the fix change?

The fix loads all folios selected by the VM for readahead into the folio queue before processing begins, rather than progressively adding them while collection may be underway. References acquired during loading are dropped later after I/O is in progress.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203