CVE-2022-49186
published high CVSS 3.1 · 7.8clk: visconti: prevent array overflow in visconti_clk_register_gates()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxb4cbe606dc3674b25cb661e7cd1a1c6ddaaafaaa to < 2723543c1d60278d5aef1c4ad732dbad24b84a81 · b4cbe606dc3674b25cb661e7cd1a1c6ddaaafaaa to < c5601e0720ce1a3ad895f94a5838530edde01ed3 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.17 (affected) · 0 to < 5.17 (unaffected · semver) · 5.17.2 through 5.17.* (unaffected · semver) · 5.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: clk: visconti: prevent array overflow in visconti_clk_register_gates() This code was using -1 to represent that there was no reset function. Unfortunately, the -1 was stored in u8 so the if (clks[i].rs_id >= 0) condition was always true. This lead to an out of bounds access in visconti_clk_register_gates().
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | b4cbe606dc3674b25cb661e7cd1a1c6ddaaafaaa to < 2723543c1d60278d5aef1c4ad732dbad24b84a81 (affected · git)b4cbe606dc3674b25cb661e7cd1a1c6ddaaafaaa to < c5601e0720ce1a3ad895f94a5838530edde01ed3 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.17 (affected)0 to < 5.17 (unaffected · semver)5.17.2 through 5.17.* (unaffected · semver)5.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-129 CWE-129 Improper Validation of Array Index
References
2Provider assertions
2Linux · cna
clk: visconti: prevent array overflow in visconti_clk_register_gates()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a8b0af5b6f445cbcf84b21b1f17d7f980c1b53b8070596ec48e7ceaf6315a251
- Ingested
- 23 Sep 2026, 08:04:03 UTC
- Source record
- Official CVE record