Array Overflow Vulnerability in Linux Kernel - visconti_clk_register_gates()

linux Updated 02 Oct 2025

Summary

26/02/2025
N/A
Yes i
High
7.8

CVE-2022-49186: 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. Affects linux versions < 5.17.3-1. Fixed in 5.17.3-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux kernel is the core component of many operating systems, providing essential services for all other parts of the system. It manages hardware resources and enables communication between software and hardware. The kernel is crucial for system stability and performance, and vulnerabilities within it can have severe implications for security and functionality. This specific vulnerability affects the visconti clock driver, which is responsible for managing clock signals in certain hardware configurations.

Vulnerability Detail

The vulnerability identified as CVE-2022-49186 arises from an improper handling of reset function identifiers within the visconti_clk_register_gates() function. The code incorrectly uses -1 to signify the absence of a reset function, but stores this value in an unsigned 8-bit integer (u8). As a result, the condition checking if the reset function identifier is greater than or equal to zero is always true, leading to potential out-of-bounds access. This flaw can result in memory corruption, crashes, or arbitrary code execution, posing a significant risk to system integrity.

How To Fix

Minimum fixed version

5.17.3-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the patch by updating the Linux package as described in the 'how_to_fix' section.

Conclusion

The CVE-2022-49186 vulnerability in the Linux kernel poses a serious risk due to improper handling of reset function identifiers, leading to potential out-of-bounds access. It is crucial for users to update their Linux packages to the patched version to mitigate this risk. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in open-source software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49186 is a vulnerability in the Linux kernel related to improper handling of reset function identifiers, leading to potential out-of-bounds access.

This vulnerability can lead to memory corruption, system crashes, or even arbitrary code execution, compromising system security and stability.

Yes, a patch is available in the form of an updated Linux kernel version 5.17.3-1 for Debian 12 and 13.

You can check if your application is affected by using the Vulert platform, which monitors and alerts for open-source vulnerabilities in real-time.

Vulert is a tool that monitors open-source vulnerabilities using a manifest file like package-lock.json, providing real-time alerts without requiring code access or installation.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

5.17.3-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback