Linux Kernel f2fs Filesystem Read COW Data from Original Inode During Atomic Write Vulnerability

Vulnerability

A vulnerability in the Linux kernel's f2fs filesystem allows for a general protection fault due to improper handling of copy-on-write (COW) data during atomic write operations. When an atomic-write file is updated, the f2fs_write_begin() function may inadvertently read data from the COW inode using the original inode's encryption context. This issue arises because the COW inode, created as a temporary file, inherits an encryption policy that can differ from that of pre-existing files. As a result, the decryption process may encounter a null pointer, leading to a crash. The vulnerability affects the Linux kernel's stable branch.

Impact

Exploitation of this vulnerability causes a general protection fault, likely due to a null pointer dereference, disrupting kernel operations and potentially leading to a system crash.

Reproduction

To reproduce this vulnerability, create a file in the f2fs filesystem and apply an encryption policy. Then, initiate an atomic write operation on the file. The f2fs_write_begin() function will read from the COW inode, but the decryption process will fail, causing a null pointer dereference and a general protection fault.

Remediation

The vulnerability has been addressed in the Linux kernel. Users should upgrade to the latest version.

Added: Jul 19, 2026, 12:43 PM
Updated: Jul 19, 2026, 12:43 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.9
remediation
7.7
relevance
10.0
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.