Critical Vulnerability in Linux Kernel: Inconsistent Node Truncation in f2fs

linux Updated 04 Nov 2025

Summary

28/10/2025
N/A
No i
Unrated
Not published

DEBIAN-CVE-2025-40025: In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to do sanity check on node footer for non inode dnode As syzbot reported below: ------------[ cut here ]------------ kernel BUG at fs/f2fs/fil... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is the core component of many operating systems, providing essential services for all other parts of the system. It manages hardware resources and facilitates communication between software and hardware. The f2fs (Flash-Friendly File System) is designed for NAND flash memory, optimizing performance and longevity. However, it has been found to have a critical vulnerability that can lead to system crashes under certain conditions.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the f2fs file system that can cause a kernel panic when handling non-inode dnodes. Specifically, if a non-inode dnode has the same footer.ino and footer.nid, it may be incorrectly parsed as an inode, leading to an inconsistent truncation range. This inconsistency can trigger a panic due to a bug check in the f2fs_truncate_hole function, potentially resulting in system instability and data loss.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, users can avoid using the f2fs file system until the patch is applied. If necessary, consider using an alternative file system that does not exhibit this vulnerability.

Conclusion

The vulnerability CVE-2025-40025 in the Linux kernel's f2fs file system poses a significant risk of system instability and data loss. Users are advised to update their systems to the latest patched version of the kernel to mitigate this risk. In the meantime, alternative file systems or workarounds should be considered.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-40025 is a vulnerability in the Linux kernel's f2fs file system that can lead to kernel panic due to inconsistent node truncation.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.

The vulnerability can cause kernel panic, leading to system crashes and potential data loss, especially when handling certain file operations.

Yes, a patch has been released for the Linux kernel to address this vulnerability. Users should update their kernel to the latest version.

If an immediate update is not possible, consider using a different file system or avoiding operations that may trigger the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback