Vulnerability in Kernel: f2fs Sanity Check on total_data_blocks

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1003504: f2fs: fix to do sanity check on total_data_blocks. Affects Kernel versions < ef221b738b26d8c9f7e7967f4586db2dd3bd5288. 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 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 Kernel is a critical component of the Linux operating system that manages communication between hardware and software. It provides essential services and functions to enable the proper functioning of the system. The f2fs (Flash-Friendly File System) is a file system specifically designed for NAND-based flash storage devices. It is used in Linux systems to optimize performance and reliability for flash storage. However, a vulnerability has been discovered in the f2fs module that could potentially lead to security issues.

Vulnerability Detail

The vulnerability in the f2fs module involves a missing sanity check on the total_data_blocks parameter. This parameter is used to determine the total number of data blocks in the file system. Without proper validation, an attacker could manipulate this parameter to cause a buffer overflow or other memory-related issues. Exploiting this vulnerability could lead to arbitrary code execution, denial of service, or privilege escalation attacks. It is crucial to address this vulnerability to ensure the integrity and security of the system.

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

There is no specific workaround mentioned for this vulnerability. However, it is strongly advised to apply the recommended fix by updating the Linux Kernel to the latest version.

Conclusion

The vulnerability in the f2fs module of the Kernel poses a significant security risk. It is crucial to update the Linux Kernel to version v5.10.121 or later to address this vulnerability. Failure to do so could result in potential exploitation by attackers. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability could potentially allow an attacker to execute arbitrary code, cause denial of service, or escalate privileges on the affected system.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

At the time of this report, there is no known exploit for this vulnerability. However, it is crucial to apply the recommended fix to prevent any potential exploitation.

The vulnerability is present in versions of the Linux Kernel prior to v5.10.121. It is recommended to update to this version or later to address the vulnerability.

For more details about this vulnerability, you can refer to the source link provided in the database_specific section of the vulnerability details.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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