{"id":"CVE-2026-139349","summary":"f2fs: quota: fix quota flush failure during filesystem freeze","details":"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-\u003es_umount)\n- sb-\u003es_writers.frozen = SB_FREEZE_PAGEFAULT\n- sync_filesystem()\n - f2fs_sync_fs()\n  - f2fs_issue_checkpoint()\n   - queue CP_SYNC -----------------\u003e - 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.","modified":"2026-12-01T21:02:37.755740832Z","published":"2026-11-30T13:33:56.388Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139349.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/261f8d4d69f66f7760a61bdd45c198505621dd45"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a5164d94b838e464d0b02a6b73af7da41f7109c1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f6f8f34480c78eade6542faea6386c47c9b4c6b3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f9470260ea0baef0a2307ff721ab37b7d3a66651"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139349.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139349"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9ec535db9da76dafa05c89f8b58a0b1d7dddba1c"},{"fixed":"f9470260ea0baef0a2307ff721ab37b7d3a66651"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"eb85c2410d6f581e957cd03a644ff6ddbe592af9"},{"fixed":"261f8d4d69f66f7760a61bdd45c198505621dd45"},{"fixed":"a5164d94b838e464d0b02a6b73af7da41f7109c1"},{"fixed":"f6f8f34480c78eade6542faea6386c47c9b4c6b3"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d7acf0a6c87aa282c86a36dbaa2f92fda88c5884"}]}],"versions":["v6.12.118","v6.12.117","v6.12.116","v6.12.115","v6.12.114","v6.14.11","v6.14.10","v6.14.9","v6.14.8","v6.14.7","v6.14.6","v6.14.5","v6.14.4","v6.14.3","v6.14.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139349.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.12.114"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.14.2"},{"fixed":"6.15"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.15.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139349.json"}}],"schema_version":"1.9.2"}