
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-49186 affects the Linux kernel's clock (clk) subsystem, specifically in the Visconti clock driver. The vulnerability was discovered in the visconticlkregister_gates() function where an array overflow condition could occur due to improper handling of reset function identifiers (Kernel Commit).
The vulnerability stems from using -1 to represent the absence of a reset function, which was stored in an unsigned 8-bit integer (u8). This caused the condition 'if (clks[i].rsid >= 0)' to always evaluate as true, leading to potential out-of-bounds array access in the visconticlkregistergates() function. The issue was fixed by introducing a NO_RESET macro defined as 0xFF to properly handle cases where no reset function is present (Kernel Commit).
The vulnerability could lead to an out-of-bounds array access in the Linux kernel's Visconti clock driver, potentially causing system instability or crashes (Kernel Commit).
The issue has been fixed in the Linux kernel through a patch that introduces a NO_RESET macro (0xFF) to properly handle cases without reset functions, replacing the previous -1 value usage. The fix was implemented in commit c5601e0720ce1a3ad895f94a5838530edde01ed3 (Kernel Commit).
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."