CVE-2026-139764

f2fs: wait for inode record work before clearing ino bitmaps

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: wait for inode record work before clearing ino bitmaps

APPEND/UPDATE inode state recording was moved to the inode eviction
workqueue. These entries were later converted to bitmap values stored in
XArrays, but the workqueue drain was left behind in the list cleanup loop
where it is now a no-op.

During unmount, inode eviction work can therefore remain queued when
f2fs_release_ino_entry() destroys the bitmap XArrays. A delayed worker can
repopulate them before the workqueue is finally destroyed, leaking newly
allocated XArray nodes when the F2FS superblock is freed.

Wait for APPEND/UPDATE inode record work before destroying each bitmap
XArray, restoring the required ordering.

Analysis

AI-generated

Technical impact

The vulnerability arises from a race condition in the Linux f2fs file system during unmount. Inode eviction work is queued but the associated workqueue is not waited for before the inode bitmap XArrays are destroyed. When a delayed worker runs after the superblock has begun to be freed, it can repopulate the bitmap nodes, causing newly allocated XArray structures to leak. This leak can lead to memory exhaustion and degraded system stability. The flaw does not grant arbitrary code execution or arbitrary privilege escalation, but it can allow an attacker with the ability to mount and unmount filesystems to abuse resource exhaustion.

Affected Systems

The issue affects the Linux kernel’s f2fs file system implementation. Exact version ranges are not specified in the data, so all kernel builds that include f2fs support and contain the unmodified code are potentially vulnerable. Users should refer to their distribution’s kernel changelogs for the patch version.

Risk and Exploitability

Because the flaw requires that the attacker can trigger unmount operations and that inode eviction work is still pending, the attack vector is likely limited to privileged or root users who can control mounts. The CVSS score is not provided, but the EPSS score is unavailable and the vulnerability is not listed in the CISA KEV catalog. Thus, while the risk to unprivileged users is low, systems that regularly handle large numbers of inode evictions or perform frequent mounts and unmounts may be at increased risk of memory exhaustion if the bug is exercised.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest kernel update that includes the f2fs inode eviction race condition fix.
  • If a patch is not yet available, avoid unmounting f2fs mounts while background I/O is pending; wait for all eviction work to finish or trigger a sync before unmounting.
  • Maintain awareness of kernel security advisories and install kernel updates promptly when the fix is released.

Generated by OpenCVE AI on December 1, 2026 at 01:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-401
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: f2fs: wait for inode record work before clearing ino bitmaps APPEND/UPDATE inode state recording was moved to the inode eviction workqueue. These entries were later converted to bitmap values stored in XArrays, but the workqueue drain was left behind in the list cleanup loop where it is now a no-op. During unmount, inode eviction work can therefore remain queued when f2fs_release_ino_entry() destroys the bitmap XArrays. A delayed worker can repopulate them before the workqueue is finally destroyed, leaking newly allocated XArray nodes when the F2FS superblock is freed. Wait for APPEND/UPDATE inode record work before destroying each bitmap XArray, restoring the required ordering.
Title f2fs: wait for inode record work before clearing ino bitmaps
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-401

    Missing Release of Memory after Effective Lifetime

Sources

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