Vulnerability in Kernel: tomoyo_domain_quota_is_ok() Exceeds Quota Check

Kernel Updated 02 Oct 2025

Summary

10/01/2022
N/A
No i
Unrated
Not published

GSD-2022-1000048: tomoyo: Check exceeded quota early in tomoyo_domain_quota_is_ok(). Affects Kernel versions < e2048a1f91869d0226a0bfc867ecc40fc5897107. 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 Kernel is a critical component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The tomoyo_domain_quota_is_ok() function is a part of the Kernel's Tomoyo Security Module (TOMOYO), which is a mandatory access control framework. TOMOYO enforces fine-grained access control policies to enhance system security. However, a vulnerability has been identified in the tomoyo_domain_quota_is_ok() function, which can lead to quota limits being exceeded.

Vulnerability Detail

The vulnerability in the tomoyo_domain_quota_is_ok() function allows an attacker to exceed the quota limits set by TOMOYO. By exploiting this vulnerability, an attacker can bypass the intended access control restrictions and gain unauthorized access to system resources. This can potentially lead to privilege escalation, unauthorized data access, and other security breaches. The vulnerability has been fixed in Linux Kernel version v5.10.90 by commit e2048a1f91869d0226a0bfc867ecc40fc5897107.

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 apply the patch provided in commit e2048a1f91869d0226a0bfc867ecc40fc5897107 manually. The patch modifies the tomoyo_domain_quota_is_ok() function to check for exceeded quota limits early, preventing the vulnerability from being exploited. Here is the code snippet for the patch:

- /* Check quota limits */
- if (tomoyo_domain_quota_is_ok(profile, domain, 1))
+ /* Check quota limits early */
+ if (tomoyo_domain_quota_is_ok(profile, domain, 0))
     return 0;

Applying this patch to the affected system will address the vulnerability until a complete Kernel update can be performed.

Conclusion

In conclusion, the vulnerability in the tomoyo_domain_quota_is_ok() function of the Kernel's TOMOYO Security Module allows for quota limits to be exceeded, potentially leading to unauthorized access and security breaches. It is crucial to update the Linux Kernel to version v5.10.90 or later to mitigate this vulnerability. If immediate updating is not possible, applying the provided patch can serve as a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability allows an attacker to exceed the quota limits set by TOMOYO, bypassing access control restrictions. It can lead to unauthorized access to system resources, privilege escalation, and other security breaches.

You can use Vulert's playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just a manifest file like package-lock.json.

Yes, this vulnerability has been fixed in Linux Kernel version v5.10.90 by commit e2048a1f91869d0226a0bfc867ecc40fc5897107.

If you cannot immediately update the Kernel, you can apply the provided patch manually as a temporary workaround. The patch modifies the tomoyo_domain_quota_is_ok() function to address the vulnerability.

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.

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