Bug 2348351 (CVE-2022-49186) - CVE-2022-49186 kernel: clk: visconti: prevent array overflow in visconti_clk_register_gates()
Summary: CVE-2022-49186 kernel: clk: visconti: prevent array overflow in visconti_clk_...
Keywords:
Status: NEW
Alias: CVE-2022-49186
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:26 UTC by OSIDB Bzimport
Modified: 2025-04-02 14:03 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:26:25 UTC
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().

Comment 1 Avinash Hanwate 2025-02-26 07:06:38 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022615-CVE-2022-49186-4d69@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.