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-1001622: f2fs: quota: fix loop condition at f2fs_quota_sync(). Affects Kernel versions >= 9de71ede81e6d1a111fdd868b2d78d459fa77f80, < e9ebf1e8fc50b6a9336f9aea1082d7845e568d0e. 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 and reliable storage management for devices such as solid-state drives (SSDs). The f2fs_quota_sync() function is responsible for synchronizing quota information with the file system. However, a loop condition in this function has been identified as a vulnerability.

Vulnerability Detail

The vulnerability in f2fs_quota_sync() arises from a loop condition that is not properly handled. This can lead to an infinite loop, causing the system to become unresponsive or crash. An attacker could potentially exploit this vulnerability to launch a denial-of-service attack, disrupting the availability of the affected system. The vulnerability was introduced in Linux Kernel version v5.15 and is fixed in version v5.16.19.

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 v5.16.19 or later. This can be done by downloading the updated kernel source code from the official Linux Kernel repository and compiling it for the target system. Alternatively, users can wait for their Linux distribution to release an updated package containing the fix.

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 functionality in the f2fs file system. This can be achieved by removing the quota mount option from the file system configuration. However, it is important to note that this workaround will disable quota management for the entire file system, which may not be desirable in some scenarios.

Conclusion

In conclusion, the f2fs package in the Linux Kernel is vulnerable to an infinite loop condition in the f2fs_quota_sync() function. This can be exploited by an attacker to launch a denial-of-service attack. It is recommended to update the Linux Kernel to version v5.16.19 or later to fix this vulnerability. Alternatively, users can disable quota functionality as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

f2fs is a file system designed for flash-based storage devices in the Linux Kernel. It provides efficient and reliable storage management for devices such as solid-state drives (SSDs).

The vulnerability can lead to an infinite loop in the f2fs_quota_sync() function, causing the system to become unresponsive or crash. This can be exploited by an attacker to launch a denial-of-service attack.

To fix this vulnerability, update the Linux Kernel to version v5.16.19 or later. Alternatively, wait for your Linux distribution to release an updated package containing the fix.

Yes, you can disable quota functionality in the f2fs file system by removing the quota mount option from the file system configuration. However, this will disable quota management for the entire file system.

For more information about this vulnerability, you can refer to the official Linux Kernel repository or the vulnerability database entry at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1001xxx/GSD-2022-1001622.json.

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 v5.16.19 or later. This can be done by downloading the updated kernel source code from the official Linux Kernel repository and compiling it for the target system. Alternatively, users can wait for their Linux distribution to release an updated package containing the fix.

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.