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-1003859: soc: rockchip: Fix refcount leak in rockchip_grf_init. Affects Kernel versions >= 4c58063d4258f6beb4fd5647db6b58f49e337c8f, < 28133325526b92921f3269fdf97a20d90b92b217. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Kernel is a crucial component of the Linux operating system that provides core functionality and acts as an interface between hardware and software. It manages system resources, including memory, processes, and device drivers. The rockchip_grf_init function is part of the rockchip system-on-chip (SoC) driver in the Kernel. It initializes the General Register Files (GRF) for Rockchip SoCs, which are responsible for configuring various hardware settings. This vulnerability in rockchip_grf_init can lead to a refcount leak, potentially causing resource exhaustion and system instability.

Vulnerability Detail

The vulnerability in rockchip_grf_init arises from a refcount leak. When the function is called multiple times without proper reference counting, it can result in a leak of system resources. An attacker could potentially exploit this vulnerability to exhaust system resources, leading to a denial-of-service (DoS) condition or other forms of system instability. The impact and attack plausibility of this vulnerability have not been proven yet. The vulnerability was introduced in Linux Kernel version v4.11 by commit 4c58063d4258f6beb4fd5647db6b58f49e337c8f and is fixed in version v4.19.247 by commit 28133325526b92921f3269fdf97a20d90b92b217.

How To Fix

No fixed version is published for this vulnerability.

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

Workaround

As a workaround, users can avoid triggering the vulnerable code path by ensuring that the rockchip_grf_init function is called with proper reference counting. This can be achieved by carefully managing the calling sequence and ensuring that the function is not invoked multiple times without appropriate reference counting.

Conclusion

The refcount leak vulnerability in rockchip_grf_init can potentially lead to resource exhaustion and system instability. It is crucial to update the Linux Kernel to version v4.19.247 or later to mitigate this vulnerability. Applying the fix will address the refcount leak and ensure the proper functioning of the rockchip system-on-chip driver. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability can potentially lead to resource exhaustion and system instability, resulting in a denial-of-service (DoS) condition or other adverse effects.

An attacker could exploit this vulnerability by triggering the refcount leak in rockchip_grf_init, causing resource exhaustion and potentially destabilizing the system.

The vulnerability was introduced in Linux Kernel version v4.11 and affects all subsequent versions until v4.19.246. It is fixed in version v4.19.247 and later.

Yes, a patch is available in Linux Kernel version v4.19.247. Users are advised to update their Kernel to this version or later to mitigate the vulnerability.

There are no known instances of this vulnerability being exploited in the wild. However, it is important to apply the fix to ensure system security and stability.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

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