Vulnerability in drm/msm Package: Fix mmap to include VM_IO and VM_DONTDUMP

Kernel Updated 02 Oct 2025

Summary

19/12/2021
N/A
No i
Unrated
Not published

GSD-2021-1002573: drm/msm: Fix mmap to include VM_IO and VM_DONTDUMP. Affects Kernel versions >= 510410bfc034c57cc3caf1572aa47c1017bab2f9, < 8e2b7fe5e8a4be5e571561d9afcfbd92097288ba. 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 drm/msm package is a component of the Linux Kernel that provides support for graphics rendering on Qualcomm Adreno GPUs. It is responsible for managing the display and rendering capabilities of these GPUs. The package includes various functions and drivers that enable communication between the GPU and the operating system. One of the critical functions is mmap, which allows applications to map GPU memory into their address space for direct access.

However, a vulnerability has been discovered in the mmap function of the drm/msm package. This vulnerability affects versions of the Linux Kernel from v5.15 to v5.15.6. The vulnerability arises due to the omission of the VM_IO and VM_DONTDUMP flags when mapping GPU memory. This oversight can potentially lead to security issues and unauthorized access to sensitive data.

Vulnerability Detail

The vulnerability in the drm/msm package arises from the incorrect implementation of the mmap function. The function fails to include the VM_IO and VM_DONTDUMP flags when mapping GPU memory. These flags are essential for ensuring the security and integrity of the mapped memory. Without these flags, the mapped memory may be accessible to unauthorized entities and can be dumped, potentially exposing sensitive information.

An attacker exploiting this vulnerability could gain unauthorized access to GPU memory, potentially leading to the extraction of sensitive data or the execution of arbitrary code. The impact of this vulnerability depends on the specific use case and the sensitivity of the data stored in GPU memory.

It is important to note that the actual 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 temporary workaround, it is recommended to avoid mapping GPU memory using the mmap function in the drm/msm package until the Linux Kernel is updated to a fixed version. This can be achieved by modifying the affected code to use alternative methods for accessing GPU memory or by disabling the functionality that relies on the mmap function.

Here is an example of a code modification that avoids using mmap:

// Original code
mmap(...); // Vulnerable function

// Modified code
alternative_function(...); // Alternative method

Conclusion

The vulnerability in the drm/msm package's mmap function poses a potential security risk by allowing unauthorized access to GPU memory. To mitigate this vulnerability, it is crucial to update the Linux Kernel to version v5.15.7 or later, which includes the necessary fix. Alternatively, a temporary workaround can be implemented by avoiding the use of the mmap function until the update is applied. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The drm/msm package is a component of the Linux Kernel that provides support for graphics rendering on Qualcomm Adreno GPUs. It manages the display and rendering capabilities of these GPUs and includes various functions and drivers for communication with the operating system.

The mmap function in the drm/msm package allows applications to map GPU memory into their address space for direct access. This enables efficient data transfer between the GPU and the application, improving graphics rendering performance.

The vulnerability in the drm/msm package can lead to unauthorized access to GPU memory, potentially resulting in the extraction of sensitive data or the execution of arbitrary code. The impact of this vulnerability depends on the specific use case and the sensitivity of the data stored in GPU memory.

There is currently no evidence of this vulnerability being exploited in the wild. However, it is important to apply the recommended fix or workaround to mitigate the potential risks.

For more information about this vulnerability, including technical details and the fix implementation, refer to the vulnerability report at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1002xxx/GSD-2021-1002573.json.

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