{"id":"CVE-2026-23234","aliases":["CVE-2026-23234"],"related":[],"kind":"vulnerability","state":"published","title":"f2fs: fix to avoid UAF in f2fs_write_end_io()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: fix to avoid UAF in f2fs_write_end_io()\n\nAs syzbot reported an use-after-free issue in f2fs_write_end_io().\n\nIt is caused by below race condition:\n\nloop device\t\t\t\tumount\n- worker_thread\n - loop_process_work\n  - do_req_filebacked\n   - lo_rw_aio\n    - lo_rw_aio_complete\n     - blk_mq_end_request\n      - blk_update_request\n       - f2fs_write_end_io\n        - dec_page_count\n        - folio_end_writeback\n\t\t\t\t\t- kill_f2fs_super\n\t\t\t\t\t - kill_block_super\n\t\t\t\t\t  - f2fs_put_super\n\t\t\t\t\t : free(sbi)\n       : get_pages(, F2FS_WB_CP_DATA)\n         accessed sbi which is freed\n\nIn kill_f2fs_super(), we will drop all page caches of f2fs inodes before\ncall free(sbi), it guarantee that all folios should end its writeback, so\nit should be safe to access sbi before last folio_end_writeback().\n\nLet's relocate ckpt thread wakeup flow before folio_end_writeback() to\nresolve this issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: fix to avoid UAF in f2fs_write_end_io()\n\nAs syzbot reported an use-after-free issue in f2fs_write_end_io().\n\nIt is caused by below race condition:\n\nloop device\t\t\t\tumount\n- worker_thread\n - loop_process_work\n  - do_req_filebacked\n   - lo_rw_aio\n    - lo_rw_aio_complete\n     - blk_mq_end_request\n      - blk_update_request\n       - f2fs_write_end_io\n        - dec_page_count\n        - folio_end_writeback\n\t\t\t\t\t- kill_f2fs_super\n\t\t\t\t\t - kill_block_super\n\t\t\t\t\t  - f2fs_put_super\n\t\t\t\t\t : free(sbi)\n       : get_pages(, F2FS_WB_CP_DATA)\n         accessed sbi which is freed\n\nIn kill_f2fs_super(), we will drop all page caches of f2fs inodes before\ncall free(sbi), it guarantee that all folios should end its writeback, so\nit should be safe to access sbi before last folio_end_writeback().\n\nLet's relocate ckpt thread wakeup flow before folio_end_writeback() to\nresolve this issue.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nf2fs: corrección para evitar UAF en f2fs_write_end_io()\n\nComo syzbot informó un problema de uso después de liberación en f2fs_write_end_io().\n\nEs causado por la siguiente condición de carrera:\n\nloop device\t\t\t\tumount\n- worker_thread\n - loop_process_work\n  - do_req_filebacked\n   - lo_rw_aio\n    - lo_rw_aio_complete\n     - blk_mq_end_request\n      - blk_update_request\n       - f2fs_write_end_io\n        - dec_page_count\n        - folio_end_writeback\n\t\t\t\t\t- kill_f2fs_super\n\t\t\t\t\t - kill_block_super\n\t\t\t\t\t  - f2fs_put_super\n\t\t\t\t\t : free(sbi)\n       : get_pages(, F2FS_WB_CP_DATA)\n         accedió a sbi que está liberado\n\nEn kill_f2fs_super(), descartaremos todas las cachés de página de los inodos f2fs antes de llamar a free(sbi), esto garantiza que todos los folios deberían finalizar su writeback, por lo tanto, debería ser seguro acceder a sbi antes del último folio_end_writeback().\n\nReubicaremos el flujo de activación del hilo ckpt antes de folio_end_writeback() para resolver este problema.","source":"nvd"}],"published":"2026-03-04T14:36:38.843Z","modified":"2026-06-17T10:21:09.317Z","severity":{"scorer":"NVD","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":"NVD","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":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"e234088758fca3a669ebb1a02d8bf7bf60f0e4ff","fixed":"0fb58aff0dafd6837cc91f4154f3ed6e020358fa","status":"affected"},{"type":"git","introduced":"e234088758fca3a669ebb1a02d8bf7bf60f0e4ff","fixed":"2f67ff1e15a8a4d0e4ffc6564ab20d03d7398fe9","status":"affected"},{"type":"git","introduced":"e234088758fca3a669ebb1a02d8bf7bf60f0e4ff","fixed":"505e1c0530db6152cab3feef8e3e4da3d3e358c9","status":"affected"},{"type":"git","introduced":"e234088758fca3a669ebb1a02d8bf7bf60f0e4ff","fixed":"acc2c97fc0005846e5cf11b5ba3189fef130c9b3","status":"affected"},{"type":"git","introduced":"e234088758fca3a669ebb1a02d8bf7bf60f0e4ff","fixed":"cf4a9e1bc8129eb63fda5f8bdcd8d87f0bd76f42","status":"affected"},{"type":"git","introduced":"e234088758fca3a669ebb1a02d8bf7bf60f0e4ff","fixed":"995030be4ce6338c6ff814583c14166446a64008","status":"affected"},{"type":"git","introduced":"e234088758fca3a669ebb1a02d8bf7bf60f0e4ff","fixed":"a42f99be8a16b32a0bb91bb6dda212a6ad61be5d","status":"affected"},{"type":"git","introduced":"e234088758fca3a669ebb1a02d8bf7bf60f0e4ff","fixed":"ce2739e482bce8d2c014d76c4531c877f382aa54","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.13","status":"unaffected"},{"type":"semver","introduced":"5.10.251","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.201","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.164","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.127","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.74","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.13","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.3","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.13","fixed":"5.10.251"},{"status":"affected","introduced":"5.11","fixed":"5.15.201"},{"status":"affected","introduced":"5.16","fixed":"6.1.164"},{"status":"affected","introduced":"6.2","fixed":"6.6.127"},{"status":"affected","introduced":"6.7","fixed":"6.12.74"},{"status":"affected","introduced":"6.13","fixed":"6.18.13"},{"status":"affected","introduced":"6.19","fixed":"6.19.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0fb58aff0dafd6837cc91f4154f3ed6e020358fa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f67ff1e15a8a4d0e4ffc6564ab20d03d7398fe9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/505e1c0530db6152cab3feef8e3e4da3d3e358c9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/acc2c97fc0005846e5cf11b5ba3189fef130c9b3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cf4a9e1bc8129eb63fda5f8bdcd8d87f0bd76f42","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/995030be4ce6338c6ff814583c14166446a64008","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a42f99be8a16b32a0bb91bb6dda212a6ad61be5d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ce2739e482bce8d2c014d76c4531c877f382aa54","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23234","url":"https://www.cve.org/CVERecord?id=CVE-2026-23234","licence":"CVE Terms of Use","modified":"2026-05-11T22:02:55.136Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23234","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23234","licence":"Public domain","modified":"2026-06-17T10:21:09.317Z"}],"updatedAt":"2026-11-25T22:59:15.170Z","epss":{"score":0.0014,"percentile":0.0359,"date":"2026-12-01T12:00:22.000Z"}}