# CVE-2022-49186: clk: visconti: prevent array overflow in visconti_clk_register_gates()

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2025-02-26T01:55:35.590Z
- Modified: 2026-06-17T05:17:19.047Z
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from b4cbe606dc3674b25cb661e7cd1a1c6ddaaafaaa before 2723543c1d60278d5aef1c4ad732dbad24b84a81; from b4cbe606dc3674b25cb661e7cd1a1c6ddaaafaaa before c5601e0720ce1a3ad895f94a5838530edde01ed3; 5.17 (not affected: before 5.17; from 5.17.2 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: from 5.17 before 5.17.2

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/2723543c1d60278d5aef1c4ad732dbad24b84a81> (patch)
- <https://git.kernel.org/stable/c/c5601e0720ce1a3ad895f94a5838530edde01ed3> (patch)

## Sources

- CVE List: [CVE-2022-49186](https://www.cve.org/CVERecord?id=CVE-2022-49186), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49186](https://nvd.nist.gov/vuln/detail/CVE-2022-49186), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49186 · Whole record: https://cve.day/CVE-2022-49186.json · Rebuilt by cve.day 2026-11-25T22:58:20.261Z
