{"id":"CVE-2026-139349","aliases":["CVE-2026-139349"],"related":[],"kind":"vulnerability","state":"published","title":"f2fs: quota: fix quota flush failure during filesystem freeze","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: quota: fix quota flush failure during filesystem freeze\n\nQuota flush retries can be exhausted during filesystem freeze.\n\nfreeze_super() and the quota checkpoint may race as below.\n\nfreeze_super()                       f2fs_ckpt\n- down_write(&sb->s_umount)\n- sb->s_writers.frozen = SB_FREEZE_PAGEFAULT\n- sync_filesystem()\n - f2fs_sync_fs()\n  - f2fs_issue_checkpoint()\n   - queue CP_SYNC -----------------> - block_operations()\n                                      - down_read_trylock(s_umount)\n                                        : fails; freeze holds write lock\n                                      - quota flush retries exhausted\n                                      - set CP_QUOTA_NEED_FSCK_FLAG\n\nDuring the PAGEFAULT sync pass, freeze_super() holds s_umount for\nwrite, but umount_lock_holder is not set until f2fs_freeze().  Thus\nquota writeback tries to acquire s_umount again and can exhaust retries.\n\nWith checkpoint merge enabled, f2fs_issue_checkpoint() may dispatch\nCP_SYNC to f2fs_ckpt. That thread also cannot acquire the freeze lock.\n\nRecord current as umount_lock_holder around the VFS PAGEFAULT sync so\ncheckpoint runs in the freeze caller and quota flush uses its existing\ns_umount write lock.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: quota: fix quota flush failure during filesystem freeze\n\nQuota flush retries can be exhausted during filesystem freeze.\n\nfreeze_super() and the quota checkpoint may race as below.\n\nfreeze_super()                       f2fs_ckpt\n- down_write(&sb->s_umount)\n- sb->s_writers.frozen = SB_FREEZE_PAGEFAULT\n- sync_filesystem()\n - f2fs_sync_fs()\n  - f2fs_issue_checkpoint()\n   - queue CP_SYNC -----------------> - block_operations()\n                                      - down_read_trylock(s_umount)\n                                        : fails; freeze holds write lock\n                                      - quota flush retries exhausted\n                                      - set CP_QUOTA_NEED_FSCK_FLAG\n\nDuring the PAGEFAULT sync pass, freeze_super() holds s_umount for\nwrite, but umount_lock_holder is not set until f2fs_freeze().  Thus\nquota writeback tries to acquire s_umount again and can exhaust retries.\n\nWith checkpoint merge enabled, f2fs_issue_checkpoint() may dispatch\nCP_SYNC to f2fs_ckpt. That thread also cannot acquire the freeze lock.\n\nRecord current as umount_lock_holder around the VFS PAGEFAULT sync so\ncheckpoint runs in the freeze caller and quota flush uses its existing\ns_umount write lock.","source":"cvelist"}],"published":"2026-11-30T13:33:56.388Z","modified":"2026-11-30T14:19:00.207Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"9ec535db9da76dafa05c89f8b58a0b1d7dddba1c","fixed":"f9470260ea0baef0a2307ff721ab37b7d3a66651","status":"affected"},{"type":"git","introduced":"eb85c2410d6f581e957cd03a644ff6ddbe592af9","fixed":"261f8d4d69f66f7760a61bdd45c198505621dd45","status":"affected"},{"type":"git","introduced":"eb85c2410d6f581e957cd03a644ff6ddbe592af9","fixed":"a5164d94b838e464d0b02a6b73af7da41f7109c1","status":"affected"},{"type":"git","introduced":"eb85c2410d6f581e957cd03a644ff6ddbe592af9","fixed":"f6f8f34480c78eade6542faea6386c47c9b4c6b3","status":"affected"},{"type":"git","version":"d7acf0a6c87aa282c86a36dbaa2f92fda88c5884","status":"affected"},{"type":"semver","introduced":"6.12.114","fixed":"6.12.119","status":"affected"},{"type":"semver","introduced":"6.14.2","fixed":"6.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","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/f9470260ea0baef0a2307ff721ab37b7d3a66651","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/261f8d4d69f66f7760a61bdd45c198505621dd45","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a5164d94b838e464d0b02a6b73af7da41f7109c1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f6f8f34480c78eade6542faea6386c47c9b4c6b3","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139349","url":"https://www.cve.org/CVERecord?id=CVE-2026-139349","licence":"CVE Terms of Use","modified":"2026-11-30T13:33:56.388Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139349","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139349","licence":"Public domain","modified":"2026-11-30T14:19:00.207Z"}],"updatedAt":"2026-11-30T14:33:05.528Z","epss":{"score":0.00201,"percentile":0.10527,"date":"2026-12-01T12:00:22.000Z"}}