Kernel NULL Pointer Dereference Vulnerability in Linux Package - CVE-2025-40054

linux Updated 04 Nov 2025

Summary

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

DEBIAN-CVE-2025-40054: In the Linux kernel, the following vulnerability has been resolved: f2fs: fix UAF issue in f2fs_merge_page_bio() As JY reported in bugzilla [1], Unable to handle kernel NULL pointer dereference at virtual address 0000000... 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 a core component of many operating systems, providing essential services for hardware management, process scheduling, and system security. It is widely used in various distributions, including Debian. This vulnerability affects the f2fs filesystem, which is designed for flash storage, and is known for its efficiency and performance. The specific issue arises from a use-after-free (UAF) condition that can lead to a kernel panic, potentially compromising system stability and security.

Vulnerability Detail

In the Linux kernel, specifically within the f2fs filesystem, a use-after-free (UAF) vulnerability has been identified. This issue can cause a kernel NULL pointer dereference at a virtual address, leading to a system crash or panic. The vulnerability originates from a race condition during the writeback process, where a page may be freed before it is accessed, resulting in unpredictable behavior. The panic is triggered when the kernel attempts to access a freed memory location, which can lead to denial of service and potential exploitation by malicious actors.

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 temporary workaround, users can avoid triggering the vulnerability by refraining from concurrent write operations on the f2fs filesystem. This can be done by ensuring that only one write process is active at a time, thus reducing the likelihood of encountering the race condition that leads to the UAF issue.

Conclusion

CVE-2025-40054 is a critical vulnerability in the Linux kernel's f2fs filesystem that can lead to severe system instability. It is crucial for users to update their systems to the patched version to mitigate the risks associated with this vulnerability. Additionally, understanding the nature of the vulnerability and implementing workarounds can help maintain system integrity until a full update can be performed.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-40054 is a vulnerability in the Linux kernel's f2fs filesystem that can lead to a kernel panic due to a use-after-free condition.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring installation.

The vulnerability can lead to system crashes, instability, and potential exploitation by attackers, resulting in denial of service.

Yes, a patch has been released. Updating your Linux package to the latest version will resolve the vulnerability.

If immediate updating is not possible, consider implementing the suggested workaround by limiting concurrent write operations on the f2fs filesystem.

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