Use After Free Vulnerability in drm/prime with drm_gem_ttm_mmap
Summary
GSD-2021-1002305: drm/prime: Fix use after free in mmap with drm_gem_ttm_mmap. Affects Kernel versions >= 9786b65bc61acec63f923978c75e707afbb74bc7, < 4f8e469a2384dfa4047145b0093126462cbb6dc0. 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 Linux Kernel is an open-source monolithic Unix-like computer operating system kernel. It provides the essential services for all other parts of the operating system, including device drivers, memory management, process management, and file system access. The drm/prime subsystem in the Linux Kernel is responsible for handling Direct Rendering Manager (DRM) objects and sharing them between different devices. The drm_gem_ttm_mmap function is used for mapping DRM objects into user space memory.
The vulnerability identified as GSD-2021-1002305 is a use-after-free issue in the mmap functionality of drm/prime with drm_gem_ttm_mmap. This vulnerability was introduced in Linux Kernel version v5.5 by commit 9786b65bc61acec63f923978c75e707afbb74bc7 and was fixed in version v5.15.5 by commit 4f8e469a2384dfa4047145b0093126462cbb6dc0. The impact and attack plausibility of this vulnerability have not been proven yet.
Vulnerability Detail
The use-after-free vulnerability in drm/prime with drm_gem_ttm_mmap can be exploited by an attacker to execute arbitrary code or cause a denial-of-service condition. When the mmap function is called, it may free the underlying memory object prematurely, leading to a use-after-free condition. An attacker can craft a malicious request to trigger this vulnerability and potentially gain elevated privileges or crash the system. The exact impact and attack vectors depend on the specific usage of the affected functionality in the Linux 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 →
Workaround
There is no known workaround for this vulnerability. It is recommended to apply the official fix by updating the Linux Kernel to the patched version.
Conclusion
The use-after-free vulnerability in drm/prime with drm_gem_ttm_mmap can pose a significant security risk in the Linux Kernel. It is crucial for users to update their Kernel to version v5.15.5 or later, which includes the necessary fix for this vulnerability. Failure to apply the patch may result in potential exploitation by attackers. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The impact of this vulnerability can vary depending on the specific usage of the affected functionality in the Linux Kernel. It could potentially allow an attacker to execute arbitrary code or cause a denial-of-service condition.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including GSD-2021-1002305.
As of now, there is no known exploit for this vulnerability. However, it is important to apply the fix as soon as possible to mitigate any potential risks.
The remote exploitability of this vulnerability depends on the specific configuration and usage of the affected functionality in the Linux Kernel. In some scenarios, it may be possible for an attacker to exploit this vulnerability remotely.
The recommended solution is to update the Linux Kernel to the patched version. There are no known alternative solutions or workarounds for this vulnerability.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.