Use After Free Vulnerability in drm/prime with drm_gem_ttm_mmap

Kernel Updated 02 Oct 2025

Summary

29/11/2021
N/A
No i
Unrated
Not published

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 ↓

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 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 →

Share this vulnerability

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.

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