Skip to content
Medium 4.4

f2fs: quota: fix quota flush failure during filesystem freeze

CVE-2026-139349 First seen on SecPulse

Affected packages

PackageAffected → Fixed
LinuxLinux —
LinuxKernel
≥ 6.12.114, < 6.12.119→ 6.12.119
≥ 6.14.2, < 6.15→ 6.15
≥ 6.15.0, < 6.18.65→ 6.18.65
≥ 6.19.0, < 7.3.6→ 7.3.6

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

In the Linux kernel, the following vulnerability has been resolved:

f2fs: quota: fix quota flush failure during filesystem freeze

Quota flush retries can be exhausted during filesystem freeze.

freeze_super() and the quota checkpoint may race as below.

freeze_super() f2fs_ckpt

  • down_write(&sb->s_umount)
  • sb->s_writers.frozen = SB_FREEZE_PAGEFAULT
  • sync_filesystem()
  • f2fs_sync_fs()
  • f2fs_issue_checkpoint()
  • queue CP_SYNC -----------------> - block_operations()
    - down_read_trylock(s_umount)
    : fails; freeze holds write lock
    - quota flush retries exhausted
    - set CP_QUOTA_NEED_FSCK_FLAG

During the PAGEFAULT sync pass, freeze_super() holds s_umount for
write, but umount_lock_holder is not set until f2fs_freeze(). Thus
quota writeback tries to acquire s_umount again and can exhaust retries.

With checkpoint merge enabled, f2fs_issue_checkpoint() may dispatch
CP_SYNC to f2fs_ckpt. That thread also cannot acquire the freeze lock.

Record current as umount_lock_holder around the VFS PAGEFAULT sync so
checkpoint runs in the freeze caller and quota flush uses its existing
s_umount write lock.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details