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-1001930: f2fs: quota: fix loop condition at f2fs_quota_sync(). Affects Kernel versions >= 9de71ede81e6d1a111fdd868b2d78d459fa77f80, < f9156db0987f1b426015d56505e2c58dee70c90d. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 users to limit the amount of disk space used by individual users or groups. However, a vulnerability has been discovered in the f2fs_quota_sync() function, which is responsible for synchronizing quota information with the file system. This vulnerability can potentially lead to incorrect quota calculations and allow users to exceed their allocated disk space.

Vulnerability Detail

The vulnerability in the f2fs_quota_sync() function arises from a loop condition that is not properly checked. This can result in an infinite loop, causing the function to consume excessive CPU resources and potentially leading to a denial-of-service condition. Additionally, the incorrect loop condition can cause incorrect quota calculations, allowing users to exceed their allocated disk space without proper enforcement. The vulnerability was introduced in version v5.15 of the Linux kernel and has been fixed in version v5.15.33.

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 known workaround for this vulnerability. It is recommended to apply the fix as soon as possible.

Conclusion

The f2fs package in the Linux kernel is vulnerable to a loop condition issue in the f2fs_quota_sync() function, which can result in incorrect quota calculations and potential denial-of-service. Users are advised to update their Linux kernel to version v5.15.33 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 can lead to incorrect quota calculations and allow users to exceed their allocated disk space. It can also cause excessive CPU resource consumption, potentially leading to a denial-of-service condition.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the Vulert Playground will analyze it for any known vulnerabilities.

At the time of this report, there is no known exploit for this vulnerability. However, it is important to apply the fix as soon as possible to prevent any potential exploitation.

It is not recommended to manually patch the vulnerability without updating the entire kernel. Patching the vulnerability requires modifying the source code of the f2fs package, which can be complex and error-prone. It is best to update the entire kernel to the latest version that includes the fix.

You can find more information about this vulnerability in the official Linux kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and the vulnerability database maintained by the Cloud Security Alliance (https://github.com/cloudsecurityalliance/gsd-database).

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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