Linux Kernel F2FS Filesystem Compression Context Update Vulnerability

Vulnerability

A vulnerability in the Linux kernel's F2FS (Flash-Friendly File System) implementation has been addressed. The issue was a divide-by-zero error that occurred when the compression context was improperly managed during the write-back process. This bug was reported by Bai Shuangpeng and was triggered by a race condition involving file synchronization and attribute setting operations on a non-compressed inode. The vulnerability affected Linux kernel versions prior to 6.17.0.

Impact

The vulnerability could lead to a divide-by-zero error, causing a crash or undefined behavior in the system.

Reproduction

The vulnerability can be reproduced by triggering a race condition between file synchronization and attribute modification operations on an F2FS inode that is not compressed. This can be done by simultaneously performing an fsync operation, modifying file attributes, and issuing an ioctl command that interacts with the file's compression settings. The race condition will cause the F2FS filesystem to attempt to divide by zero, leading to a crash.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the updated kernel can be found on the official Linux kernel website.

Added: Jan 13, 2026, 8:33 PM
Updated: Jan 13, 2026, 8:33 PM

Vulnerability Rating

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

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