drm/msm/mdp5: Return error code in mdp5_mixer_release when deadlock is detected
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7907a0d77cb461f58045763c205a5830be72e97c · < 46e5ce63924a96af452c4fc5ee0bb3b241e1b9f4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/msm/mdp5: Return error code in mdp5_mixer_release when deadlock is detected
There is a possibility for mdp5_get_global_state to return -EDEADLK when acquiring the modeset lock, but currently global_state in mdp5_mixer_release doesn't check for if an error is returned.
To avoid a NULL dereference error, let's have mdp5_mixer_release check if an error is returned and propagate that error.
Patchwork: https://patchwork.freedesktop.org/patch/485181/
From the CVE record · Linux
The Linux kernel’s mdp5_mixer_release did not check whether mdp5_get_global_state returned an error when acquiring the modeset lock. If that operation detects a deadlock, the unchecked error can lead to a NULL dereference. The input does not describe an attacker path or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels that include the drm/msm/mdp5 driver should check whether their kernel contains the fix; affected versions were not provided.