{"id":"CVE-2026-89841","aliases":["CVE-2026-89841"],"related":[],"kind":"vulnerability","state":"published","title":"f2fs: only redirty pinned folios in redirty_blocks","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: only redirty pinned folios in redirty_blocks\n\nredirty_blocks() pins folios with read_cache_folio() and then walks the\nsame range again with filemap_lock_folio() to redirty them and drop the\nreferences it took.\n\nCommit 5951fee46bef (\"f2fs: Use a folio in redirty_blocks()\") changed\nthe second pass to a do/while loop. If read_cache_folio() fails before\nanything is pinned, page_idx does not advance but the cleanup loop still\nruns once.\n\nIf readahead has already populated the failed folio in page cache, that\nextra iteration finds it and folio_put_refs(folio, 2) drops one\nreference too many. Later drop_caches or reclaim can then report\n\"BUG: Bad page state\".\n\nOnly redirty the range that was pinned successfully.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: only redirty pinned folios in redirty_blocks\n\nredirty_blocks() pins folios with read_cache_folio() and then walks the\nsame range again with filemap_lock_folio() to redirty them and drop the\nreferences it took.\n\nCommit 5951fee46bef (\"f2fs: Use a folio in redirty_blocks()\") changed\nthe second pass to a do/while loop. If read_cache_folio() fails before\nanything is pinned, page_idx does not advance but the cleanup loop still\nruns once.\n\nIf readahead has already populated the failed folio in page cache, that\nextra iteration finds it and folio_put_refs(folio, 2) drops one\nreference too many. Later drop_caches or reclaim can then report\n\"BUG: Bad page state\".\n\nOnly redirty the range that was pinned successfully.","source":"cvelist"}],"published":"2026-09-16T10:31:15.578Z","modified":"2026-10-19T09:18:28.030Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5951fee46befbf6176c86482432f4f76e522f16c","fixed":"445e4a1e6025ecd5312e9a95c1b234192c976ca1","status":"affected"},{"type":"git","introduced":"5951fee46befbf6176c86482432f4f76e522f16c","fixed":"89c65ec3c18903de763cf567c96ab3ef60e5f3b0","status":"affected"},{"type":"git","introduced":"5951fee46befbf6176c86482432f4f76e522f16c","fixed":"85171332742e741ccd6f401c69b6e0d698119e72","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.16","status":"unaffected"},{"type":"semver","introduced":"6.18.51","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.5","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/445e4a1e6025ecd5312e9a95c1b234192c976ca1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/89c65ec3c18903de763cf567c96ab3ef60e5f3b0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/85171332742e741ccd6f401c69b6e0d698119e72","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89841","url":"https://www.cve.org/CVERecord?id=CVE-2026-89841","licence":"CVE Terms of Use","modified":"2026-10-19T08:53:34.362Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89841","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89841","licence":"Public domain","modified":"2026-10-19T09:18:28.030Z"}],"updatedAt":"2026-11-25T22:59:38.953Z","epss":{"score":0.00161,"percentile":0.05558,"date":"2026-12-01T12:00:22.000Z"}}