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-1002141: f2fs: quota: fix loop condition at f2fs_quota_sync(). Affects Kernel versions >= 2d586a3f5b7ec2f5a939db4abc9aa053c237545c, < e58ee6bd939b773675240f5d0f5b88a367c037c4. 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 and reliable storage management for devices such as solid-state drives (SSDs). The f2fs_quota_sync() function is responsible for synchronizing the quota information of the file system. Quota management is crucial for limiting and monitoring disk space usage by users or groups. However, a loop condition in the f2fs_quota_sync() function can lead to incorrect synchronization of quota information, potentially allowing users to exceed their allocated disk space or bypass quota restrictions.

Vulnerability Detail

The vulnerability in the f2fs package arises from a loop condition in the f2fs_quota_sync() function. This loop condition is not properly checked, leading to incorrect synchronization of quota information. As a result, users may be able to exceed their allocated disk space or bypass quota restrictions. This could have significant consequences in multi-user environments where disk space needs to be managed and allocated fairly. An attacker could potentially abuse this vulnerability to consume excessive disk space or evade quota limitations, impacting the availability and performance of the file system.

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 for the f2fs file system until the kernel is updated. This can be achieved by modifying the /etc/fstab file and removing the 'usrquota' or 'grpquota' options for the f2fs file system. However, it is important to note that disabling quota management may impact the ability to enforce disk space limits and monitor usage.

Conclusion

The f2fs package in the Linux Kernel is vulnerable to a loop condition in the f2fs_quota_sync() function, which can result in incorrect synchronization of quota information. This vulnerability can be mitigated by updating the kernel to version v5.10.110 or later. As a temporary workaround, users can disable quota management for the f2fs file system. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability allows users to exceed their allocated disk space or bypass quota restrictions, potentially leading to disk space exhaustion and performance degradation.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Vulert analyzes the manifest file like package-lock.json to identify and alert for open-source vulnerabilities in software.

Yes, the vulnerability has been fixed in Linux Kernel version v5.10.110. It is recommended to update the kernel to this version or later to mitigate the vulnerability.

Yes, you can disable quota management for the f2fs file system as a temporary workaround. However, this may impact the ability to enforce disk space limits and monitor usage.

There are no known exploits for this vulnerability at the moment. However, it is important to apply the fix as soon as possible to prevent potential abuse.

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