{"api_version":"1","generated_at":"2026-09-16T11:54:56+00:00","cve":"CVE-2026-89841","urls":{"html":"https://cve.report/CVE-2026-89841","api":"https://cve.report/api/cve/CVE-2026-89841.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-89841","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-89841"},"summary":{"title":"f2fs: only redirty pinned folios in redirty_blocks","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-09-16 11:16:50","updated_at":"2026-09-16 11:16:50"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/89c65ec3c18903de763cf567c96ab3ef60e5f3b0","name":"https://git.kernel.org/stable/c/89c65ec3c18903de763cf567c96ab3ef60e5f3b0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/445e4a1e6025ecd5312e9a95c1b234192c976ca1","name":"https://git.kernel.org/stable/c/445e4a1e6025ecd5312e9a95c1b234192c976ca1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/85171332742e741ccd6f401c69b6e0d698119e72","name":"https://git.kernel.org/stable/c/85171332742e741ccd6f401c69b6e0d698119e72","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-89841","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89841","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5951fee46befbf6176c86482432f4f76e522f16c 445e4a1e6025ecd5312e9a95c1b234192c976ca1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5951fee46befbf6176c86482432f4f76e522f16c 89c65ec3c18903de763cf567c96ab3ef60e5f3b0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5951fee46befbf6176c86482432f4f76e522f16c 85171332742e741ccd6f401c69b6e0d698119e72 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.16","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.51 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.5 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/f2fs/file.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"445e4a1e6025ecd5312e9a95c1b234192c976ca1","status":"affected","version":"5951fee46befbf6176c86482432f4f76e522f16c","versionType":"git"},{"lessThan":"89c65ec3c18903de763cf567c96ab3ef60e5f3b0","status":"affected","version":"5951fee46befbf6176c86482432f4f76e522f16c","versionType":"git"},{"lessThan":"85171332742e741ccd6f401c69b6e0d698119e72","status":"affected","version":"5951fee46befbf6176c86482432f4f76e522f16c","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/f2fs/file.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.16"},{"lessThan":"6.16","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.51","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.51","versionStartIncluding":"6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.5","versionStartIncluding":"6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3-rc1","versionStartIncluding":"6.16","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-09-16T10:31:15.578Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/445e4a1e6025ecd5312e9a95c1b234192c976ca1"},{"url":"https://git.kernel.org/stable/c/89c65ec3c18903de763cf567c96ab3ef60e5f3b0"},{"url":"https://git.kernel.org/stable/c/85171332742e741ccd6f401c69b6e0d698119e72"}],"title":"f2fs: only redirty pinned folios in redirty_blocks","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-89841","datePublished":"2026-09-16T10:31:15.578Z","dateReserved":"2026-09-11T19:38:34.770Z","dateUpdated":"2026-09-16T10:31:15.578Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-16 11:16:50","lastModifiedDate":"2026-09-16 11:16:50","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"89841","Ordinal":"1","Title":"f2fs: only redirty pinned folios in redirty_blocks","CVE":"CVE-2026-89841","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"89841","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"f2fs: only redirty pinned folios in redirty_blocks"}]}}}