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-1002800: f2fs: fix to do sanity check on last xattr entry in __f2fs_setxattr(). Affects Kernel versions < b0406b5ef4e2c4fb21d9e7d5c36a0453b4279e9b. 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 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 like atomic writes and inline data. The vulnerability in the package arises from a missing sanity check on the last extended attribute (xattr) entry in the __f2fs_setxattr() function.

Vulnerability Detail

The vulnerability occurs when setting an extended attribute on a file. Without the proper sanity check, an attacker could manipulate the last xattr entry to trigger a buffer overflow or other memory corruption issues. This could potentially lead to arbitrary code execution or a denial of service attack. The vulnerability has been fixed in Linux Kernel version v5.4.169 by commit b0406b5ef4e2c4fb21d9e7d5c36a0453b4279e9b.

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, users can mitigate the risk by ensuring they have proper access controls in place and limiting the exposure of vulnerable systems to untrusted sources.

Conclusion

The vulnerability in the f2fs package, which lacked a sanity check on the last xattr entry, could potentially lead to arbitrary code execution or denial of service attacks. It is crucial to update the Linux Kernel to version v5.4.169 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability could potentially allow an attacker to execute arbitrary code or cause a denial of service on affected systems.

At the time of this report, there is no known exploit publicly available for this vulnerability.

The vulnerability is present in versions of the f2fs package prior to Linux Kernel v5.4.169.

While it is recommended to update to the fixed version as soon as possible, the urgency may vary depending on the specific deployment and exposure of the affected systems.

More details about the fix can be found in the commit b0406b5ef4e2c4fb21d9e7d5c36a0453b4279e9b in the official Linux Kernel repository.

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