f2fs: quota: fix loop condition at f2fs_quota_sync()

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001319: f2fs: quota: fix loop condition at f2fs_quota_sync(). Affects Kernel versions >= 9de71ede81e6d1a111fdd868b2d78d459fa77f80, < 724469814d805820cd37ea789769dba94123ff1a. 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 various features such as encryption, compression, and quota management. The quota management feature allows administrators to limit the amount of disk space a user or group can consume. However, a vulnerability has been discovered in the f2fs_quota_sync() function, which can lead to a loop condition and potential security issues.

Vulnerability Detail

The vulnerability in the f2fs_quota_sync() function arises from a loop condition that is not properly handled. This can result in an infinite loop, causing the system to become unresponsive or crash. An attacker may exploit this vulnerability to launch a denial-of-service attack or potentially execute arbitrary code with elevated privileges. The vulnerability was introduced in Linux Kernel version v5.15 and has been fixed in version v5.17.2.

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

As a workaround, users can disable quota management in the f2fs file system. This can be achieved by modifying the system's configuration files or using the appropriate command-line options during the file system mount process. However, it is important to note that disabling quota management may impact the ability to enforce disk space limits for users or groups.

Conclusion

The f2fs package in the Linux Kernel is vulnerable to a loop condition in the f2fs_quota_sync() function, which can lead to denial-of-service attacks or potential code execution with elevated privileges. It is crucial to update the kernel to version v5.17.2 or later to mitigate this vulnerability. Alternatively, users can disable quota management in the f2fs file system as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to a denial-of-service condition or potential code execution with elevated privileges.

You can use Vulert's playground (https://vulert.com/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 known vulnerabilities.

Yes, the vulnerability has been fixed in Linux Kernel version v5.17.2. It is recommended to update to this version or a later one to mitigate the risk.

Yes, you can disable quota management in the f2fs file system as a temporary workaround. However, this may impact the ability to enforce disk space limits for users or groups.

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