# CVE-2022-49490: drm/msm/mdp5: Return error code in mdp5_pipe_release when deadlock is detected

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2025-02-26T02:13:27.529Z
- Modified: 2026-06-17T05:18:13.017Z
- Weaknesses: CWE-476
- 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/

(As written by CVE List.)

## Affected

- Linux Linux: from 7907a0d77cb461f58045763c205a5830be72e97c before 776f5c58bfe16cf322d71eeed3c5dda1eeac7e6b; from 7907a0d77cb461f58045763c205a5830be72e97c before b2aa2c4efe93e2580d6a8774b04fe2b99756a322; from 7907a0d77cb461f58045763c205a5830be72e97c before 49dc28b4b2e28ef7564e355c91487996c1cbebd7; from 7907a0d77cb461f58045763c205a5830be72e97c before 04bef5f1ba8ea6d7c1c8f5f65e0395c62db59cb8; from 7907a0d77cb461f58045763c205a5830be72e97c before 19964dfb39bda4d7716a71009488f0668ecbcf52; from 7907a0d77cb461f58045763c205a5830be72e97c before 33dc5aac46e0fad8f5eb193e5906ed0eb6b66ceb; from 7907a0d77cb461f58045763c205a5830be72e97c before d59be579fa932c46b908f37509f319cbd4ca9a68; 4.18 (not affected: before 4.18; from 4.19.247 up to 4.19.*; from 5.4.198 up to 5.4.*; from 5.10.121 up to 5.10.*; from 5.15.46 up to 5.15.*; from 5.17.14 up to 5.17.*; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 4.18 before 4.19.247; from 4.20 before 5.4.198; from 5.5 before 5.10.121; from 5.11 before 5.15.46; from 5.16 before 5.17.14; from 5.18 before 5.18.3

## References

- <https://git.kernel.org/stable/c/776f5c58bfe16cf322d71eeed3c5dda1eeac7e6b> (patch)
- <https://git.kernel.org/stable/c/b2aa2c4efe93e2580d6a8774b04fe2b99756a322> (patch)
- <https://git.kernel.org/stable/c/49dc28b4b2e28ef7564e355c91487996c1cbebd7> (patch)
- <https://git.kernel.org/stable/c/04bef5f1ba8ea6d7c1c8f5f65e0395c62db59cb8> (patch)
- <https://git.kernel.org/stable/c/19964dfb39bda4d7716a71009488f0668ecbcf52> (patch)
- <https://git.kernel.org/stable/c/33dc5aac46e0fad8f5eb193e5906ed0eb6b66ceb> (patch)
- <https://git.kernel.org/stable/c/d59be579fa932c46b908f37509f319cbd4ca9a68> (patch)

## Sources

- CVE List: [CVE-2022-49490](https://www.cve.org/CVERecord?id=CVE-2022-49490), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49490](https://nvd.nist.gov/vuln/detail/CVE-2022-49490), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49490 · Whole record: https://cve.day/CVE-2022-49490.json · Rebuilt by cve.day 2026-11-25T22:58:20.686Z
