{"id":"CVE-2022-49186","aliases":["CVE-2022-49186"],"related":[],"kind":"vulnerability","state":"published","title":"clk: visconti: prevent array overflow in visconti_clk_register_gates()","summary":"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 >= 0)\ncondition was always true.  This lead to an out of bounds access in\nvisconti_clk_register_gates().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 >= 0)\ncondition was always true.  This lead to an out of bounds access in\nvisconti_clk_register_gates().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: clk: visconti: evitar desbordamiento de matriz en visconti_clk_register_gates() Este código usaba -1 para representar que no había una función de reinicio. Desafortunadamente, el -1 se almacenaba en u8, por lo que la condición if (clks[i].rs_id &gt;= 0) siempre era verdadera. Esto provocó un acceso fuera de los límites en visconti_clk_register_gates().","source":"nvd"}],"published":"2025-02-26T01:55:35.590Z","modified":"2026-06-17T05:17:19.047Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-129"],"affected":[{"ranges":[{"type":"git","introduced":"b4cbe606dc3674b25cb661e7cd1a1c6ddaaafaaa","fixed":"2723543c1d60278d5aef1c4ad732dbad24b84a81","status":"affected"},{"type":"git","introduced":"b4cbe606dc3674b25cb661e7cd1a1c6ddaaafaaa","fixed":"c5601e0720ce1a3ad895f94a5838530edde01ed3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.17","status":"unaffected"},{"type":"semver","introduced":"5.17.2","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.17","fixed":"5.17.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2723543c1d60278d5aef1c4ad732dbad24b84a81","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c5601e0720ce1a3ad895f94a5838530edde01ed3","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-10-01T19:47:22.612Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49186","url":"https://www.cve.org/CVERecord?id=CVE-2022-49186","licence":"CVE Terms of Use","modified":"2026-05-11T18:54:46.985Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49186","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49186","licence":"Public domain","modified":"2026-06-17T05:17:19.047Z"}],"updatedAt":"2026-11-25T22:58:20.261Z","epss":{"score":0.00249,"percentile":0.17391,"date":"2026-12-01T12:00:22.000Z"}}