Refcount Leak in rockchip_grf_init in Kernel

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1003735: soc: rockchip: Fix refcount leak in rockchip_grf_init. Affects Kernel versions >= 4c58063d4258f6beb4fd5647db6b58f49e337c8f, < 69a30b2ed620c2206cbbd1e9c112e4fc584e02bd. No fix is published. 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 Kernel is a fundamental component of the Linux operating system that manages core system functions. It provides an interface between hardware and software, allowing applications to access system resources. The rockchip_grf_init function is part of the rockchip driver in the Kernel, specifically designed for Rockchip SoCs. This function initializes the General Register Files (GRF) for Rockchip SoCs. The GRF is responsible for controlling various hardware components and peripherals on the SoC. However, a vulnerability in the rockchip_grf_init function can lead to a refcount leak.

Vulnerability Detail

The vulnerability in rockchip_grf_init is a refcount leak, which occurs when a reference to a resource is not properly released. This can result in memory leaks and potential resource exhaustion. An attacker could potentially exploit this vulnerability to exhaust system resources, leading to a denial-of-service (DoS) condition. The vulnerability was introduced in version v4.11 of the Linux Kernel and was fixed in version v5.4.198. The fix was implemented through commit 69a30b2ed620c2206cbbd1e9c112e4fc584e02bd.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.4.198 or later. This can be done by pulling the latest updates from the official Linux Kernel repository using the following command:

$ git pull https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

After updating the Kernel, recompile and reinstall it on the affected system. Additionally, it is advisable to follow best practices for secure software development to minimize the risk of similar vulnerabilities in the future.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As this vulnerability has been fixed in the latest version of the Linux Kernel, there is no specific workaround available. It is recommended to update to the fixed version as mentioned in the 'how_to_fix' section.

Conclusion

The refcount leak vulnerability in rockchip_grf_init in the Kernel can lead to resource exhaustion and a denial-of-service condition. It is crucial to update the Kernel to the fixed version (v5.4.198 or later) to mitigate this vulnerability. Following secure software development practices and implementing additional security measures can further enhance the overall security posture. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to a denial-of-service (DoS) condition by exhausting system resources.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and the Vulert Playground will provide real-time alerts for open-source vulnerabilities.

At the time of this report, there are no known exploits for this vulnerability. However, it is still important to apply the fix to prevent potential exploitation.

The recommended approach is to update the Kernel to the fixed version. However, if updating is not immediately feasible, it is advisable to follow general security best practices, such as implementing network segmentation, access controls, and monitoring to minimize the risk of exploitation.

The primary solution is to update the Kernel to the fixed version. However, if updating is not possible, you may consider implementing additional security measures, such as intrusion detection systems and firewalls, to detect and mitigate potential attacks targeting this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.4.198 or later. This can be done by pulling the latest updates from the official Linux Kernel repository using the following command:

$ git pull https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

After updating the Kernel, recompile and reinstall it on the affected system. Additionally, it is advisable to follow best practices for secure software development to minimize the risk of similar vulnerabilities in the future.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.