Vulnerability in Kernel: tomoyo_domain_quota_is_ok() Exceeds Quota Check
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.