Vulnerability in Kernel: f2fs: fix to do sanity check on last xattr entry in __f2fs_setxattr()

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1002788: f2fs: fix to do sanity check on last xattr entry in __f2fs_setxattr(). Affects Kernel versions < f9dfa44be0fb5e8426183a70f69a246cf5827f49. 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 is a critical component of the Linux operating system that provides essential functionality and acts as an interface between hardware and software. It manages system resources, facilitates communication between processes, and enables the execution of various tasks. The f2fs (Flash-Friendly File System) is a file system specifically designed for NAND-based flash storage devices. It aims to optimize performance and reliability for flash memory storage. However, a vulnerability has been identified in the __f2fs_setxattr() function, which is responsible for setting extended attributes (xattrs) on files in the f2fs file system.

Vulnerability Detail

The vulnerability in the __f2fs_setxattr() function of the f2fs file system allows for a potential security breach. It arises from a lack of proper sanity checks on the last xattr entry, which could lead to memory corruption or arbitrary code execution. An attacker could exploit this vulnerability by crafting a malicious xattr entry and manipulating the system to execute arbitrary code or gain unauthorized access to sensitive information. The impact and attack plausibility of this vulnerability have not been proven, but it is crucial to address it to ensure the security and integrity of the system.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v4.19.223 or later. The fix for this issue can be found in the commit f9dfa44be0fb5e8426183a70f69a246cf5827f49. Updating the Kernel to the latest stable version will ensure that the necessary patches are applied and the vulnerability is mitigated.

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. The recommended approach is to update the Kernel to the fixed version as mentioned above.

Conclusion

In conclusion, a vulnerability has been identified in the Kernel's f2fs file system, specifically in the __f2fs_setxattr() function. This vulnerability could potentially lead to memory corruption or arbitrary code execution. It is recommended to update the Kernel to version v4.19.223 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 Kernel is a critical component of the Linux operating system that provides essential functionality and acts as an interface between hardware and software. It manages system resources, facilitates communication between processes, and enables the execution of various tasks.

f2fs (Flash-Friendly File System) is a file system specifically designed for NAND-based flash storage devices. It aims to optimize performance and reliability for flash memory storage.

An xattr (extended attribute) is a file system feature that allows additional metadata to be associated with a file or directory. It provides a way to store and retrieve custom information beyond the traditional file attributes.

An attacker could exploit this vulnerability by crafting a malicious xattr entry and manipulating the system to execute arbitrary code or gain unauthorized access to sensitive information.

No, the impact and attack plausibility of this vulnerability have not been proven. However, it is still important to address it to ensure the security and integrity of the system.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v4.19.223 or later. The fix for this issue can be found in the commit f9dfa44be0fb5e8426183a70f69a246cf5827f49. Updating the Kernel to the latest stable version will ensure that the necessary patches are applied and the vulnerability is mitigated.

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.