Skip to content
Heist/ feed
Unrated

netfs: Fix readahead synchronisation issues by loading all folios upfront

Type: advisorySource: Official CVE List1 source record

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

Announced Source revision 1
Original source ↗

CVE-2026-98118

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-98118

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "ee4cdf7ba857a894ad1650d6ab77669cbbfa329e",
        "lessThan": "8c9b33945712074a85d3bdacbca036ba6b3d92c6",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "ee4cdf7ba857a894ad1650d6ab77669cbbfa329e",
        "lessThan": "fed0b33e6c584986ba70018ec9f9787a98216e64",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/netfs/buffered_read.c",
      "fs/netfs/internal.h",
      "fs/netfs/misc.c",
      "fs/netfs/read_collect.c",
      "fs/netfs/read_retry.c",
      "fs/netfs/rolling_buffer.c",
      "include/linux/netfs.h",
      "include/linux/rolling_buffer.h",
      "include/trace/events/netfs.h"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.12"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.12",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "7.2.7",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/netfs/buffered_read.c",
      "fs/netfs/internal.h",
      "fs/netfs/misc.c",
      "fs/netfs/read_collect.c",
      "fs/netfs/read_retry.c",
      "fs/netfs/rolling_buffer.c",
      "include/linux/netfs.h",
      "include/linux/rolling_buffer.h",
      "include/trace/events/netfs.h"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-98118

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#38216 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement