NULL pointer dereference in amdgpu_dm_connector_add_common_modes() in Kernel

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001239: drm/amd/display: Fix a NULL pointer dereference in amdgpu_dm_connector_add_common_modes(). Affects Kernel versions >= e7b07ceef2a650e5ed8ca37997689e086c680daf, < 639b3b9def0a6a3f316a195d705d14113236e89c. 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 Kernel is a crucial component of the Linux operating system that acts as a bridge between hardware and software. It provides essential services and functions to enable the proper functioning of various hardware devices. The amdgpu_dm_connector_add_common_modes() function is a part of the drm/amd/display module in the Kernel, specifically designed for AMD GPUs. This function is responsible for adding common display modes to the connector. However, a vulnerability in this function can lead to a NULL pointer dereference, potentially causing a system crash or other unexpected behavior.

Vulnerability Detail

The vulnerability in amdgpu_dm_connector_add_common_modes() arises due to a lack of proper validation of a pointer. When the function is called, it fails to check if a pointer is NULL before dereferencing it. As a result, if a NULL pointer is passed as an argument, the function will attempt to access memory at that location, leading to a crash or other undefined behavior. An attacker could potentially exploit this vulnerability by providing a specially crafted input to trigger the NULL pointer dereference, leading to a denial of service or potential code execution.

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 avoid triggering the vulnerable code path by refraining from performing actions that invoke the amdgpu_dm_connector_add_common_modes() function with a NULL pointer. However, this workaround may not be feasible in all scenarios, and it is strongly recommended to apply the official fix by updating the Kernel.

Conclusion

The NULL pointer dereference vulnerability in amdgpu_dm_connector_add_common_modes() in the Kernel can lead to system crashes or other unexpected behavior. It is crucial to update the Linux Kernel to version v5.17.2 or later to mitigate this vulnerability. Users can also utilize tools like Vulert to check if their systems are affected and receive real-time alerts for open-source vulnerabilities. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can result in a NULL pointer dereference, leading to a system crash or other unexpected behavior. In some cases, an attacker may be able to exploit this vulnerability to execute arbitrary code or launch a denial of service attack.

You can use tools like Vulert to check if your system is affected by this vulnerability. Vulert analyzes the manifest file, such as package-lock.json, to identify and alert in real-time for open-source vulnerabilities in the software.

This vulnerability requires an attacker to have local access to the system. However, if an attacker gains local access, they can potentially exploit this vulnerability to execute arbitrary code or disrupt the system's normal operation.

There are no known instances of this vulnerability being actively exploited in the wild. However, it is essential to apply the fix promptly to mitigate any potential risks.

For more detailed information about this vulnerability, including technical specifics and the fix implementation, you can refer to the vulnerability report in the GSD database at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1001xxx/GSD-2022-1001239.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