Vulnerability in f2fs Package: Sanity Check on Last Xattr Entry

Kernel Updated 02 Oct 2025

Summary

30/12/2021
N/A
No i
Unrated
Not published

GSD-2021-1002813: f2fs: fix to do sanity check on last xattr entry in __f2fs_setxattr(). Affects Kernel versions < fffb6581a23add416239dfcf7e7f3980c6b913da. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The f2fs package is a file system designed for flash-based storage devices in the Linux kernel. It provides efficient data management and supports advanced features such as inline data, atomic writes, and atomic file creation. The package is widely used in various Linux distributions and is responsible for managing file system operations on flash-based storage devices.

Vulnerability Detail

The vulnerability identified in the f2fs package relates to a missing sanity check on the last extended attribute (xattr) entry in the __f2fs_setxattr() function. This function is responsible for setting extended attributes on files within the file system. By not performing a proper sanity check, an attacker could potentially manipulate the last xattr entry to trigger a security issue. The impact of this vulnerability is yet to be proven, but it has the potential to lead to unauthorized access, privilege escalation, or other security breaches.

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

No specific workaround has been mentioned for this vulnerability.

Conclusion

The f2fs package in the Linux Kernel is vulnerable to a missing sanity check issue in the __f2fs_setxattr() function. This vulnerability can potentially lead to unauthorized access or privilege escalation. Users are advised to update their Linux Kernel to version v5.10.89 or later to mitigate the vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The f2fs package is a file system designed for flash-based storage devices in the Linux kernel. It provides efficient data management and supports advanced features such as inline data, atomic writes, and atomic file creation.

The impact of this vulnerability is yet to be proven, but it has the potential to lead to unauthorized access, privilege escalation, or other security breaches.

To fix this vulnerability, you need to update your Linux Kernel to version v5.10.89 or later, which includes the necessary patch to address the issue.

No specific workaround has been mentioned for this vulnerability.

For more information about this vulnerability, you can refer to the source link provided in the database_specific field 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