
Cloud Vulnerability DB
A community-led vulnerabilities database
In the Linux kernel, a vulnerability (CVE-2021-47044) was discovered in the scheduler's fair load balancing mechanism. The issue occurs when sd->nr_balance_failed can grow to unexpectedly high values (such as 86 or 149), leading to undefined behavior in the load_balance() function (Kernel Git).
The vulnerability stems from a shift operation where the right operand could become greater than or equal to the width of the promoted left operand, resulting in undefined behavior. This occurs in the load balancing code where a successful load_balance() resets the counter to 0, while a failed one increments it. When the counter reaches sd->cache_nice_tries + 3, it should trigger an active balance, but if the task cannot run on env->dst_cpu, the increment continues without modification (Kernel Git).
The vulnerability could lead to undefined behavior in the kernel's scheduler, potentially affecting system stability and performance. The issue specifically impacts the load balancing mechanism, which is crucial for proper CPU utilization and system performance (Kernel Git).
The vulnerability was discovered through automated testing by Syzbot, which reported multiple occurrences of the issue. While there are no reports of active exploitation in the wild, the vulnerability exists in the core scheduling component of the Linux kernel (Kernel Git).
The issue has been fixed by implementing a cap on the shift exponent to BITS_PER_TYPE(typeof(val)) - 1 through the introduction of a new shr_bound macro. This prevents the undefined behavior while maintaining the intended functionality of the load balancing mechanism (Kernel Git).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."