Vulnerability in Kernel package: video: fbdev: clcdfb: Fix refcount leak in clcdfb_of_vram_setup
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.