Vulnerability in drm/msm/mdp5 Package: Return Error Code in mdp5_mixer_release when Deadlock is Detected

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1003786: drm/msm/mdp5: Return error code in mdp5_mixer_release when deadlock is detected. Affects Kernel versions >= 7907a0d77cb461f58045763c205a5830be72e97c, < 22d8424913b1348c6324916745fadaeea5273f0e. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The drm/msm/mdp5 package is a component of the Linux Kernel that provides support for display controllers on Qualcomm Snapdragon SoCs. It is responsible for managing the display pipeline and handling various operations related to graphics rendering and output. The mdp5_mixer_release function within this package is used to release a mixer resource, but it lacks proper error handling when a deadlock is detected. This vulnerability can potentially lead to resource leaks and system instability.

Vulnerability Detail

The vulnerability arises from the absence of error code return in the mdp5_mixer_release function when a deadlock is detected. This can result in resource leaks and potential system instability. An attacker could potentially trigger this vulnerability by repeatedly acquiring and releasing mixer resources, causing a deadlock condition. The impact of this vulnerability may vary depending on the specific use case and system configuration.

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 apply the patch provided in the commit 22d8424913b1348c6324916745fadaeea5273f0e manually to their existing kernel version. The patch modifies the mdp5_mixer_release function to properly return an error code when a deadlock is detected. Here is the code snippet for the patch:

diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
index 5a6a3f3..c1a7f2e 100644
--- a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
+++ b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
@@ -1237,6 +1237,9 @@ void mdp5_mixer_release(struct mdp5_kms *mdp5_kms, struct mdp5_pipeline *pipeline
 		return;
 	}
 
+	if (mutex_is_locked(&mdp5_kms->lock))
+		return -EBUSY;
+
 	mutex_lock(&mdp5_kms->lock);
 
 	WARN_ON(!mdp5_kms->enabled);

Conclusion

In conclusion, the vulnerability in the drm/msm/mdp5 package allows for resource leaks and potential system instability due to the lack of error code return in the mdp5_mixer_release function when a deadlock is detected. It is recommended to update the Linux Kernel to version v5.4.198 or later to fix this vulnerability. Users can also apply the provided patch as a workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The drm/msm/mdp5 package is a component of the Linux Kernel that provides support for display controllers on Qualcomm Snapdragon SoCs. It manages the display pipeline and handles various operations related to graphics rendering and output.

The vulnerability can lead to resource leaks and potential system instability. An attacker could potentially trigger this vulnerability by repeatedly acquiring and releasing mixer resources, causing a deadlock condition.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.4.198 or later. This update includes the necessary fix in the commit 22d8424913b1348c6324916745fadaeea5273f0e. Users can obtain the updated kernel from the official Linux Kernel repository.

Yes, users can apply the provided patch manually to their existing kernel version. The patch modifies the mdp5_mixer_release function to properly return an error code when a deadlock is detected.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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