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-1002281: f2fs: quota: fix loop condition at f2fs_quota_sync(). Affects Kernel versions >= a02982545e61020c23f411b073ba5171381138e4, < f1d5946d47c0827bae39e1537959ce8d6f0224c5. 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 quota information in the file system. Quota support allows administrators to limit the amount of disk space a user or group can consume. However, a loop condition in the f2fs_quota_sync() function can lead to incorrect synchronization of quota information, potentially resulting in incorrect disk space usage calculations and quota enforcement.

Vulnerability Detail

The vulnerability in the f2fs_quota_sync() function arises from a loop condition that is not properly handled. This loop condition can prevent the correct synchronization of quota information, leading to inaccurate disk space usage calculations and quota enforcement. An attacker could potentially exploit this vulnerability to bypass quota restrictions and consume more disk space than allowed. The impact of this vulnerability can vary depending on the specific system configuration and the presence of quota restrictions.

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 update the Linux kernel to the latest version as soon as possible.

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 fixed by updating the Linux kernel to version v5.4.189 or later. It is recommended to update the kernel as soon as possible to ensure accurate disk space usage calculations and quota enforcement. 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 f2fs_quota_sync() function is responsible for synchronizing quota information in the f2fs file system. Quota support allows administrators to limit the amount of disk space a user or group can consume.

The vulnerability can lead to incorrect synchronization of quota information in the f2fs file system. This can result in inaccurate disk space usage calculations and quota enforcement. An attacker could potentially exploit this vulnerability to bypass quota restrictions and consume more disk space than allowed.

To fix this vulnerability, it is recommended to update the Linux kernel to version v5.4.189 or later. The fix for this vulnerability was implemented in commit f1d5946d47c0827bae39e1537959ce8d6f0224c5.

There is no known workaround for this vulnerability. It is recommended to update the Linux kernel to the latest version as soon as possible.

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