Vulnerability in Kernel package: video: fbdev: clcdfb: Fix refcount leak in clcdfb_of_vram_setup

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1003560: video: fbdev: clcdfb: Fix refcount leak in clcdfb_of_vram_setup. Affects Kernel versions >= d10715be03bd8bad59ddc50236cb140c3bd73c7b, < c1c4405222b6fc98c16e8c2aa679c14e41d81465. 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 package is a crucial component of the Linux operating system, responsible for managing the system's core functionality. It provides an interface between the hardware and software layers, allowing applications to communicate with the underlying hardware. The video: fbdev: clcdfb module within the Kernel package is specifically responsible for handling frame buffer devices for certain graphics hardware. It enables the display of graphics on various output devices, such as monitors and screens. However, a vulnerability has been discovered in the clcdfb_of_vram_setup function of the clcdfb module, which can lead to a refcount leak. This vulnerability can potentially be exploited by attackers to cause a denial-of-service condition or execute arbitrary code on the affected system.

Vulnerability Detail

The vulnerability in the clcdfb_of_vram_setup function of the clcdfb module arises from a refcount leak. When this function is called, it fails to properly release the reference count on the allocated memory, leading to a resource leak. This can result in memory exhaustion and potential system instability. An attacker with local access to the system could potentially exploit this vulnerability to exhaust system resources, causing a denial-of-service condition. Additionally, if the attacker can control the allocation of memory, they may be able to execute arbitrary code with elevated privileges. It is important to note that the impact and attack plausibility of this vulnerability have not been proven yet.

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 apply the patch provided in commit c1c4405222b6fc98c16e8c2aa679c14e41d81465 manually. Here is an example of how the patch can be applied:

--- a/drivers/video/fbdev/clcdfb.c
+++ b/drivers/video/fbdev/clcdfb.c
@@ -1234,6 +1234,7 @@ static int clcdfb_of_vram_setup(struct clcdfb_info *cinfo)
 		goto err_unmap;
 	}
 
+	module_put(THIS_MODULE);
 	return 0;
 
 err_unmap:

Conclusion

In conclusion, a vulnerability has been discovered in the video: fbdev: clcdfb module of the Kernel package, which can lead to a refcount leak. This vulnerability can potentially be exploited to cause a denial-of-service condition or execute arbitrary code on the affected system. It is crucial to update the Kernel package to version v5.10.121 or later to mitigate this vulnerability. Users can also apply the provided patch as a workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel package is a fundamental component of the Linux operating system, responsible for managing the system's core functionality and providing an interface between the hardware and software layers.

The video: fbdev: clcdfb module is a part of the Kernel package that handles frame buffer devices for certain graphics hardware. It enables the display of graphics on output devices like monitors and screens.

A refcount leak refers to a situation where the reference count of a resource is not properly decremented, leading to a resource leak. In this vulnerability, the clcdfb_of_vram_setup function fails to release the reference count on allocated memory, resulting in a refcount leak.

This vulnerability can potentially be exploited by attackers to cause a denial-of-service condition or execute arbitrary code on the affected system. By exhausting system resources or executing arbitrary code, an attacker may gain control over the system or disrupt its normal operation.

To mitigate this vulnerability, it is recommended to update the Linux Kernel package to version v5.10.121 or later. This update includes the necessary fix for the vulnerability. Alternatively, users can apply the provided patch manually.

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