CVE-2026-139693

f2fs: fix to record both APPEND and UPDATE ino entries

Published Nov 30, 2026 CVSS 3.1 · 3.6 Low EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

f2fs: fix to record both APPEND and UPDATE ino entries

In f2fs_post_evict_inode(), record_bits is assigned with BIT(APPEND_INO)
and BIT(UPDATE_INO) respectively, so the second assignment overwrites
the first one: when both FI_APPEND_WRITE and FI_UPDATE_WRITE are set,
only the UPDATE_INO entry is recorded.

The two flags are not mutually exclusive.Once the APPEND_INO entry is
lost after the inode eviction, the shortcut in f2fs_do_sync_file() can
take the flush_out path in the next fsync(), skipping f2fs_fsync_node_pages().
As a result, the dnodes holding the newly allocated blocks are not
fsync-marked, and after a sudden power loss, the data appended before the
eviction is silently lost.

This restores the previous behavior where the two ino entries were
added independently.

Analysis

AI-generated

Technical impact

In the Linux kernel a bug in the f2fs file system routine that records inode flags during eviction caused the APPEND_INO flag to be overwritten by the UPDATE_INO flag whenever both FI_APPEND_WRITE and FI_UPDATE_WRITE were set. As a result, the f2fs_do_sync_file() shortcut was incorrectly invoked during a subsequent fsync, preventing the node pages that held newly allocated blocks from being marked fsync‑safe. A sudden power loss after such an eviction therefore caused the appended data to be silently lost, compromising data integrity. The flaw is a moderate‑severity bug (CVSS 3.6) that undermines the durability guarantees of f2fs.

Affected Systems

All Linux kernels that include the f2fs file system and have not applied the referenced patch. Any distribution or custom kernel build using f2fs before integration of the fix is potentially impacted, regardless of version number.

Risk and Exploitability

The vulnerability is local in nature and can be triggered by ordinary file write and sync operations on an f2fs partition. No privileged escalation or remote code execution is possible. The exploitation probability is not quantified by EPSS, and the flaw is not listed in CISA’s KEV catalog, indicating no known specialized exploits. Environments that rely on f2fs for critical data integrity, particularly those with unreliable power supplies, face a moderate to high risk of silent data loss in the event of an unexpected shutdown.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the f2fs post‑eviction inode flag fix.
  • Reboot the system so that the updated kernel configuration replaces the old f2fs module and the new inode flag behavior takes effect.
  • Perform a test write, fsync, simulate a power cut, and verify that appended data is persisted or that a recovery procedure restores it.

Generated by OpenCVE AI on December 1, 2026 at 14:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-480
References
Metrics threat_severity

None

cvssV3_1

{'score': 3.6, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L'}

threat_severity

Low

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to record both APPEND and UPDATE ino entries In f2fs_post_evict_inode(), record_bits is assigned with BIT(APPEND_INO) and BIT(UPDATE_INO) respectively, so the second assignment overwrites the first one: when both FI_APPEND_WRITE and FI_UPDATE_WRITE are set, only the UPDATE_INO entry is recorded. The two flags are not mutually exclusive.Once the APPEND_INO entry is lost after the inode eviction, the shortcut in f2fs_do_sync_file() can take the flush_out path in the next fsync(), skipping f2fs_fsync_node_pages(). As a result, the dnodes holding the newly allocated blocks are not fsync-marked, and after a sudden power loss, the data appended before the eviction is silently lost. This restores the previous behavior where the two ino entries were added independently.
Title f2fs: fix to record both APPEND and UPDATE ino entries
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-480

    Use of Incorrect Operator

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:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Low
Public date
Nov 30, 2026, 1:37 PM