Vulnerability in drm/virtio package: NULL pointer dereference in virtio_gpu_conn_get_modes

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1002834: drm/virtio: fix NULL pointer dereference in virtio_gpu_conn_get_modes. Affects Kernel versions < 0f8bc147a963686b7351aa35d1701124ffacac08. 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/virtio package is a component of the Linux Kernel ecosystem. It provides support for the VirtIO GPU driver, which allows virtual machines to utilize the host's GPU resources. The virtio_gpu_conn_get_modes function is responsible for retrieving the available display modes for a VirtIO GPU connection. However, a vulnerability exists in this function that can lead to a NULL pointer dereference.

Vulnerability Detail

The vulnerability in the virtio_gpu_conn_get_modes function arises from a failure to handle NULL pointers correctly. When called with a NULL pointer as the 'conn' parameter, the function does not perform proper validation, leading to a dereference of the NULL pointer. An attacker could exploit this vulnerability by providing a specially crafted input that triggers the NULL pointer dereference, potentially resulting in a system crash or other unexpected behavior. 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

No workaround has been provided for this vulnerability.

Conclusion

In conclusion, the vulnerability in the drm/virtio package's virtio_gpu_conn_get_modes function can lead to a NULL pointer dereference. To mitigate this vulnerability, it is crucial to update the Linux Kernel to version v5.18.3 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability is currently unknown. It could potentially lead to a system crash or other unexpected behavior.

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 to the playground, and it will alert you if the vulnerability is present.

There is currently no known exploit for this vulnerability. However, it is still important to update to the latest version of the Linux Kernel to ensure the security of your system.

The recommended mitigation is to update the Linux Kernel to version v5.18.3 or later, which includes the fix 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