{
  "id": "CVE-2026-98118",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-98118",
  "published_at": "2026-09-25T10:36:02.924Z",
  "title": "netfs: Fix readahead synchronisation issues by loading all folios upfront",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.1,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: Fix readahead synchronisation issues by loading all folios upfront\n\nThere are some synchronisation issues that derive from the app thread\nadding more folios to the rolling buffer whilst the collector thread is\nlooking at them or trying to clear them, such as determining the setting of\nfront_folio_order when the next folio hasn't been added yet,\n\nThe reason for the rolling buffer approach is that loading the buffer\nupfront and then dropping all the refs just acquired is quite a slow\noperation, and loading progressively allows some of the cost to be deferred\nuntil after at least some of the I/O is started.\n\nInstead, a better way is to load all the folios into the rolling buffer\nupfront - and then drop the refs later, once the I/O is in progress.  (Even\nbetter would be for the refs not to be there at all.)\n\nFix this by changing the rolling buffer loader to load all the folios\nselected by the VM for readahead upfront into the folio queue.  The folio\nqueue is allocated a batch worth at a time as we don't know how many folios\nare involved (the readahead_control struct, alas, has a page count, not a\nfolio count).\n\nThe folio refs acquired from readahead are then dropped in bulk once the\nfirst subrequest is dispatched as it's quite a slow operation.  The\ncollector waits for NETFS_RREQ_NEED_PUT_RA_REFS to be cleared so that it\ndoesn't unlock folios before the xarray has been scanned for them.\n\nThis simplifies the buffer handling later and isn't noticeably slower as\nthe xarray doesn't need to be modified and the folios are all already\npre-locked.",
  "cwe": "CWE-362",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.3:rc2:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \u003c 8c9b33945712074a85d3bdacbca036ba6b3d92c6",
          "\u003e= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \u003c fed0b33e6c584986ba70018ec9f9787a98216e64"
        ],
        "fixed_in": [
          "8c9b33945712074a85d3bdacbca036ba6b3d92c6",
          "fed0b33e6c584986ba70018ec9f9787a98216e64"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.12"
        ],
        "fixed_in": [
          "0",
          "7.2.7",
          "7.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 8c9b33945712074a85d3bdacbca036ba6b3d92c6 or fed0b33e6c584986ba70018ec9f9787a98216e64 or later.",
      "Upgrade Linux to 0 or 7.2.7 or 7.3 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
