Vulnerability in Kernel package: f2fs: fix to avoid touching checkpointed data in get_victim()

Kernel Updated 02 Oct 2025

Summary

31/05/2021
N/A
No i
Unrated
Not published

GSD-2021-1000218: f2fs: fix to avoid touching checkpointed data in get_victim(). Affects Kernel versions >= 4354994f097d068a894aa1a0860da54571df3582, < 211372b2571520e394b56b431a0705586013b3ff. 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 Penetration testing for web, API and mobile 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 package is a fundamental component of the Linux operating system. It provides the core functionality and interfaces for the system's hardware and software components. The f2fs (Flash-Friendly File System) is a file system specifically designed for flash memory storage devices. It is used by the Kernel package to manage file storage and retrieval. However, a vulnerability has been discovered in the f2fs module that can lead to the manipulation of checkpointed data in the get_victim() function.

Vulnerability Detail

The vulnerability in the f2fs module occurs in the get_victim() function. This function is responsible for selecting a victim block during garbage collection. However, due to a coding error, the function may inadvertently access checkpointed data, which can lead to data corruption or unauthorized access. An attacker could potentially exploit this vulnerability to modify or retrieve sensitive information from the file system. The vulnerability was introduced in version v4.20 of the Linux Kernel and has been fixed in version v5.12.5.

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 available for this vulnerability. However, users can mitigate the risk by following best practices for system security, such as restricting access to sensitive data, implementing proper access controls, and regularly monitoring and auditing file system activities.

Conclusion

In conclusion, the f2fs module in the Kernel package is vulnerable to a flaw that can lead to data corruption or unauthorized access. It is crucial to update the Linux Kernel package to version v5.12.5 or later to mitigate this vulnerability. Regularly updating the Kernel package and following best practices for system security are essential for maintaining a secure environment. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially lead to data corruption or unauthorized access to sensitive information stored in the file system.

You can use the Vulert playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the Vulert tool will analyze it for any known vulnerabilities, including this one.

There is no evidence of this vulnerability being exploited in the wild at the time of discovery. However, it is recommended to apply the necessary security updates to mitigate any potential risks.

Updating the Linux Kernel package to version v5.12.5 or later is the recommended mitigation for this vulnerability. Regularly updating the Kernel package and following best practices for system security can also help mitigate the risk.

This vulnerability was discovered by the security research team at Vulert, a platform that specializes in monitoring and alerting for open-source vulnerabilities in software.

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