CVE-2022-49490 drm/msm/mdp5: Return error code in mdp5_pipe_release when deadlock is detected
A missing error check in the Linux kernel MSM display driver can lead to a NULL pointer dereference and system crash when a deadlock is detected.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-49490?
CVE-2022-49490 is a medium-severity vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
drm/msm/mdp5: Return error code in mdp5_pipe_release when deadlock is detected
mdp5_get_global_state runs the risk of hitting a -EDEADLK when acquiring the modeset lock, but currently mdp5_pipe_release doesn't check for if an error is returned. Because of this, there is a possibility of mdp5_pipe_release hitting a NULL dereference error.
To avoid this, let's have mdp5_pipe_release check if mdp5_get_global_state returns an error and propogate that error.
Changes since v1: - Separated declaration and initialization of *new_state to avoid compiler warning - Fixed some spelling mistakes in commit message
Changes since v2: - Return 0 in case where hwpipe is NULL as this is considered normal behavior - Added 2nd patch in series to fix a similar NULL dereference issue in mdp5_mixer_release
Patchwork: https://patchwork.freedesktop.org/patch/485179/
Weakness: CWE-476
Which versions are affected by CVE-2022-49490?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49490?
Apply the vendor's patch.
Is CVE-2022-49490 being exploited?
There is no known exploitation of CVE-2022-49490 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49490, GHSA-rpvf-9x4w-8h3f, UBUNTU-CVE-2022-49490.