CVE-2022-49490 Details
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/
A vulnerability in the Linux kernel's DRM MSM MDP5 component can lead to a NULL dereference error. This issue arises in the 'mdp5_pipe_release' function, which does not currently check for errors when acquiring the modeset lock. As a result, 'mdp5_pipe_release' may encounter a NULL dereference if 'mdp5_get_global_state' returns a deadlock error. The vulnerability has been addressed by modifying 'mdp5_pipe_release' to check for errors and propagate them appropriately.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/04bef5f1ba8ea6d7c1c8f5f65e0395c62db59cb8 | kernel.org | Patch |
| https://git.kernel.org/stable/c/19964dfb39bda4d7716a71009488f0668ecbcf52 | kernel.org | Patch |
| https://git.kernel.org/stable/c/33dc5aac46e0fad8f5eb193e5906ed0eb6b66ceb | kernel.org | Patch |
| https://git.kernel.org/stable/c/49dc28b4b2e28ef7564e355c91487996c1cbebd7 | kernel.org | Patch |
| https://git.kernel.org/stable/c/776f5c58bfe16cf322d71eeed3c5dda1eeac7e6b | kernel.org | Patch |
| https://git.kernel.org/stable/c/b2aa2c4efe93e2580d6a8774b04fe2b99756a322 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d59be579fa932c46b908f37509f319cbd4ca9a68 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.18, < 4.19.247 >= 4.20, < 5.4.198 >= 5.5, < 5.10.121 >= 5.11, < 5.15.46 >= 5.16, < 5.17.14 >= 5.18, < 5.18.3 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 22, 2025 | Initial Analysis | [email protected] |
| Feb 26, 2025 | New CVE Received | kernel.org |