CVE-2026-139794

f2fs: fix to fetch ino via ino_of_node() under cache lock

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: fix to fetch ino via ino_of_node() under cache lock

In f2fs_writeback_node_caches(), it's better to fetch ino via ino_of_node()
under cache lock, otherwise, node cache content may become stale after cache
is unlocked due to racing w/ truncation.

Commit 493b9dc8b52c ("f2fs: cache: use node cache") fixes similar issue in
f2fs_flush_inline_data() introduced in commit 34c061ad85a2 ("f2fs: Avoid double
lock for cp_rwsem during checkpoint").

Analysis

AI-generated

Technical impact

The flaw involves the f2fs file system retrieving inode numbers via ino_of_node() without holding the necessary cache lock, allowing node cache content to become stale after the lock is released in the presence of truncation. This race condition can result in corrupted inode information, potentially leading to data loss or a denial of service. The likely attack vector would require a user with sufficient privileges to trigger concurrent cache write‑back and truncation operations; this inference is drawn from the described race condition.

Affected Systems

All Linux kernel implementations that include support for the f2fs file system are potentially impacted. The specific kernel versions are not enumerated, so any current kernel containing f2fs support that does not include the fix from commit 493b9dc8b52c or later remains at risk.

Risk and Exploitability

No CVSS or EPSS score is published, and the vulnerability is not listed in CISA's KEV catalog. The race condition suggests that exploitation is likely restricted to local or privileged users; remote exploitation appears improbable given the need to trigger concurrent filesystem operations. The overall risk may be considered moderate to high until the kernel is updated to incorporate the lock fix. The revocation of stale cache data mitigates the risk once the patch is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the f2fs cache lock fix from commit 493b9dc8b52c or later
  • If a kernel upgrade is not immediately feasible, restrict or disable f2fs mounts until the update can be applied
  • Monitor filesystem integrity and kernel logs for signs of race condition exploitation

Generated by OpenCVE AI on December 1, 2026 at 02:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to fetch ino via ino_of_node() under cache lock In f2fs_writeback_node_caches(), it's better to fetch ino via ino_of_node() under cache lock, otherwise, node cache content may become stale after cache is unlocked due to racing w/ truncation. Commit 493b9dc8b52c ("f2fs: cache: use node cache") fixes similar issue in f2fs_flush_inline_data() introduced in commit 34c061ad85a2 ("f2fs: Avoid double lock for cp_rwsem during checkpoint").
Title f2fs: fix to fetch ino via ino_of_node() under cache lock
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')

Sources

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