CVE-2026-98118
Awaiting Analysis Awaiting Analysis - Queue

Race Condition in Linux Kernel Netfs Readahead

Vulnerability report for CVE-2026-98118, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-25

Last updated on: 2026-09-30

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-25
Last Modified
2026-09-30
Generated
2026-10-15
AI Q&A
2026-09-25
EPSS Evaluated
2026-10-14
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves synchronization issues in the netfs component when handling readahead operations. The problem occurs when the app thread adds folios to a rolling buffer while the collector thread processes them, leading to race conditions. The fix changes the approach to load all folios upfront into the buffer before dropping references, simplifying synchronization and avoiding slow operations.

Detection Guidance

This vulnerability is specific to the Linux kernel's netfs component and does not have a direct detection method via network or system commands. It requires checking the kernel version and applying the patch described in the fix. Use 'uname -r' to check your kernel version and compare it against patched versions.

Impact Analysis

This vulnerability could lead to data corruption or system crashes due to race conditions in file system operations. Users might experience unexpected behavior, performance degradation, or system instability when accessing files through the affected kernel component.

Compliance Impact

This vulnerability does not directly affect compliance with standards like GDPR or HIPAA as it is a low-level kernel synchronization issue in the Linux netfs subsystem. It does not involve data exposure, unauthorized access, or privacy violations that these regulations typically address.

Mitigation Strategies

Update your Linux kernel to a version that includes the fix for this vulnerability. The patch addresses synchronisation issues in the netfs readahead functionality. Check your distribution's security advisories for the patched kernel version and apply it immediately.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-98118. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart