CVE-2022-49490
drm/msm/mdp5: Return error code in mdp5_pipe_release when deadlock is detected
- Published
- Updated
- Reserved
- Assigned by
- Linux
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/
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Analyzed | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.27% · top 81% of all CVEs (6 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Weakness
Affected products
- affected 7907a0d77cb461f58045763c205a5830be72e97c – < 776f5c58bfe16cf322d71eeed3c5dda1eeac7e6b
- affected 7907a0d77cb461f58045763c205a5830be72e97c – < b2aa2c4efe93e2580d6a8774b04fe2b99756a322
- affected 7907a0d77cb461f58045763c205a5830be72e97c – < 49dc28b4b2e28ef7564e355c91487996c1cbebd7
- affected 7907a0d77cb461f58045763c205a5830be72e97c – < 04bef5f1ba8ea6d7c1c8f5f65e0395c62db59cb8
- affected 7907a0d77cb461f58045763c205a5830be72e97c – < 19964dfb39bda4d7716a71009488f0668ecbcf52
- affected 7907a0d77cb461f58045763c205a5830be72e97c – < 33dc5aac46e0fad8f5eb193e5906ed0eb6b66ceb
- affected 7907a0d77cb461f58045763c205a5830be72e97c – < d59be579fa932c46b908f37509f319cbd4ca9a68
- affected 4.18
- unaffected < 4.18
- unaffected 4.19.247 – ≤ 4.19.*
- unaffected 5.4.198 – ≤ 5.4.*
- unaffected 5.10.121 – ≤ 5.10.*
- unaffected 5.15.46 – ≤ 5.15.*
- unaffected 5.17.14 – ≤ 5.17.*
- unaffected 5.18.3 – ≤ 5.18.*
- unaffected 5.19 – ≤ *
References (7)
- https://git.kernel.org/stable/c/776f5c58bfe16cf322d71eeed3c5dda1eeac7e6b (opens in a new tab)
- https://git.kernel.org/stable/c/b2aa2c4efe93e2580d6a8774b04fe2b99756a322 (opens in a new tab)
- https://git.kernel.org/stable/c/49dc28b4b2e28ef7564e355c91487996c1cbebd7 (opens in a new tab)
- https://git.kernel.org/stable/c/04bef5f1ba8ea6d7c1c8f5f65e0395c62db59cb8 (opens in a new tab)
- https://git.kernel.org/stable/c/19964dfb39bda4d7716a71009488f0668ecbcf52 (opens in a new tab)
- https://git.kernel.org/stable/c/33dc5aac46e0fad8f5eb193e5906ed0eb6b66ceb (opens in a new tab)
- https://git.kernel.org/stable/c/d59be579fa932c46b908f37509f319cbd4ca9a68 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-49490)Record last updated .