Deadlock Vulnerability in Linux Kernel's f2fs Package: Critical Shutdown Issue

linux Updated 02 Oct 2025

Summary

12/07/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-40969: In the Linux kernel, the following vulnerability has been resolved: f2fs: don't set RO when shutting down f2fs Shutdown does not check the error of thaw_super due to readonly, which causes a deadlock like below. Affects linux versions < 6.9.7-1. Fixed in 6.9.7-1. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is a core component of many operating systems, providing essential services for hardware management and system resources. The f2fs (Flash-Friendly File System) is designed to optimize performance on flash storage devices. This package is integral for efficient data handling and storage management, but it is susceptible to vulnerabilities that can lead to system instability.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the f2fs module related to the shutdown process. Specifically, the issue arises when the system attempts to set the file system to read-only (RO) during shutdown without properly checking for errors from the thaw_super function. This oversight can lead to a deadlock situation, where the shutdown process hangs indefinitely, causing potential data loss and system unresponsiveness. The deadlock sequence involves multiple functions, including f2fs_ioc_shutdown and bdev_freeze, which can create a critical failure in the file system's operation.

How To Fix

Minimum fixed version

6.9.7-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. However, users are advised to avoid shutting down the system while the f2fs file system is in use until the patch is applied.

Conclusion

The identified vulnerability in the Linux kernel's f2fs package poses a significant risk during system shutdowns, leading to potential deadlocks and data loss. It is crucial for users to update to the patched version 6.9.7-1 or later to mitigate this risk. Regular monitoring and timely updates are essential for maintaining system integrity.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability can lead to a deadlock during the shutdown process, potentially causing system crashes and data loss.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If an immediate update is not possible, avoid shutting down the system while using the f2fs file system to prevent encountering the deadlock.

Yes, the vulnerability affects specific versions of the Linux kernel prior to 6.9.7-1.

You can refer to the official Debian security advisories or the CVE database for detailed information on vulnerabilities affecting the Linux kernel.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.9.7-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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