{"id":"CVE-2022-49186","summary":"clk: visconti: prevent array overflow in visconti_clk_register_gates()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: visconti: prevent array overflow in visconti_clk_register_gates()\n\nThis code was using -1 to represent that there was no reset function.\nUnfortunately, the -1 was stored in u8 so the if (clks[i].rs_id \u003e= 0)\ncondition was always true.  This lead to an out of bounds access in\nvisconti_clk_register_gates().","modified":"2026-04-02T08:27:23.018004Z","published":"2025-02-26T01:55:35.590Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49186.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2723543c1d60278d5aef1c4ad732dbad24b84a81"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c5601e0720ce1a3ad895f94a5838530edde01ed3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49186.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49186"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b4cbe606dc3674b25cb661e7cd1a1c6ddaaafaaa"},{"fixed":"2723543c1d60278d5aef1c4ad732dbad24b84a81"},{"fixed":"c5601e0720ce1a3ad895f94a5838530edde01ed3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49186.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}