CVE-2022-49186

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49186
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49186.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49186
Downstream
Published
2025-02-26T01:55:35Z
Modified
2025-10-15T18:51:12.310529Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
clk: visconti: prevent array overflow in visconti_clk_register_gates()
Details

In the Linux kernel, the following vulnerability has been resolved:

clk: visconti: prevent array overflow in visconticlkregister_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].rsid >= 0) condition was always true. This lead to an out of bounds access in visconticlkregistergates().

References

Affected packages

Git / 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
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b4cbe606dc3674b25cb661e7cd1a1c6ddaaafaaa
Fixed
c5601e0720ce1a3ad895f94a5838530edde01ed3

Affected versions

v5.*

v5.16
v5.16-rc2
v5.16-rc3
v5.16-rc4
v5.16-rc5
v5.16-rc6
v5.16-rc7
v5.16-rc8
v5.17
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.17-rc7
v5.17-rc8
v5.17.1

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
5.17.2