CVE-2022-49186

clk: visconti: prevent array overflow in visconti_clk_register_gates()

High · published February 26, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
15.3
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00249 · 15.3th percentile
Published
2025-02-26T01:55Z
EPSS history
Timeline
  • 26 FEB 01:55Z
    clk: visconti: prevent array overflow in visconti_clk_register_gates()
    cvelistv5