{"id":"CVE-2026-89841","revision":"efc50b491a9e4785a73d91d5b66fd1e0","records":[{"revision":"efc50b491a9e4785a73d91d5b66fd1e0","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-89841","aliases":[],"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":0,"publishedAt":"2026-09-16T10:31:15.578+00:00","modifiedAt":"2026-10-19T08:53:34.362+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/f2fs/file.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"5951fee46befbf6176c86482432f4f76e522f16c\",\n                            \"lessThan\": \"445e4a1e6025ecd5312e9a95c1b234192c976ca1\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"5951fee46befbf6176c86482432f4f76e522f16c\",\n                            \"lessThan\": \"89c65ec3c18903de763cf567c96ab3ef60e5f3b0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"5951fee46befbf6176c86482432f4f76e522f16c\",\n                            \"lessThan\": \"85171332742e741ccd6f401c69b6e0d698119e72\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/f2fs/file.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.16\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.16\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.51\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.5\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"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,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/445e4a1e6025ecd5312e9a95c1b234192c976ca1","https://git.kernel.org/stable/c/89c65ec3c18903de763cf567c96ab3ef60e5f3b0","https://git.kernel.org/stable/c/85171332742e741ccd6f401c69b6e0d698119e72"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-89841","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-89841","identifiers":["CVE-2026-89841"]},"retained":false,"historicalAffected":[]}],"coverage":[]}