CVE-2026-139349

f2fs: quota: fix quota flush failure during filesystem freeze

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

In the Linux kernel, the f2fs filesystem has a race condition between quota checkpointing and the filesystem freeze process. During a freeze, the quota module may exhaust its retry loop when attempting to acquire the write lock on the superblock, causing quota data to be left unwritten and the checkpoint to flag a required filesystem check. This flaw can lead to a denial of service if the system repeatedly fails to write quota updates or to data inconsistency in quota enforcement.

Affected Systems

The flaw affects all Linux kernel versions that ship the f2fs filesystem before the commit that introduced the fix. The vendor is Linux, the product is the Linux kernel with the f2fs filesystem component. No specific kernel release is listed in the advisory, so any pre‑fix kernel using f2fs is considered vulnerable.

Risk and Exploitability

The advisory does not list the flaw in CISA's Known Exploited Vulnerabilities catalog and no EPSS score is available, suggesting there are currently no known public exploits. The vulnerability requires that an attacker can trigger a filesystem freeze, which is typically a local privilege activity. The impact is a potential denial of service or incorrect quota enforcement rather than remote code execution, so the overall risk is moderate but not zero.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that contains the f2fs quota flush fix.
  • If an immediate kernel upgrade is not possible, backport the offending commits (261f8d4d, a5164d94, f6f8f344, f9470261) to the running kernel and rebuild.
  • After patching, verify that f2fs quota checkpoints no longer exhaust retries during a freeze by inducing a filesystem freeze and monitoring for CP_QUOTA_NEED_FSCK_FLAG occurrences.
  • Continuously monitor system logs for unexpected freezes or quota inconsistencies, and remove any temporary workarounds once the production kernel is updated.

Generated by OpenCVE AI on December 1, 2026 at 06:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-400
Type Values Removed Values Added
Description 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.
Title f2fs: quota: fix quota flush failure during filesystem freeze
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM