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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-02-26 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2022-49490, DEBIAN-CVE-2022-49490
- Record: https://cvemate.com/vulnerability/CVE-2022-49490 · JSON: https://cvemate.com/vulnerability/CVE-2022-49490/json

## Description

```text
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/
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.272%, percentile 20.791%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 111)

- debian linux (Debian): \< 5.18.5-1
- ubuntu linux (Ubuntu): \< 5.4.0-126.142 \| \< 5.15.0-47.51
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.4.0-1085.92 \| \< 5.15.0-1019.23
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1019.23~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1085.92~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 5.4.0-1085.92+fips1 \| All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1091.96 \| \< 5.15.0-1019.24
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1019.24~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/776f5c58bfe16cf322d71eeed3c5dda1eeac7e6b>
- <https://git.kernel.org/stable/c/b2aa2c4efe93e2580d6a8774b04fe2b99756a322>
- <https://git.kernel.org/stable/c/49dc28b4b2e28ef7564e355c91487996c1cbebd7>
- <https://git.kernel.org/stable/c/04bef5f1ba8ea6d7c1c8f5f65e0395c62db59cb8>
- <https://git.kernel.org/stable/c/19964dfb39bda4d7716a71009488f0668ecbcf52>
- <https://git.kernel.org/stable/c/33dc5aac46e0fad8f5eb193e5906ed0eb6b66ceb>
- <https://git.kernel.org/stable/c/d59be579fa932c46b908f37509f319cbd4ca9a68>
- <https://ubuntu.com/security/CVE-2022-49490>
- <https://www.cve.org/CVERecord?id=CVE-2022-49490>
- <https://git.kernel.org/linus/d59be579fa932c46b908f37509f319cbd4ca9a68>
- <https://security-tracker.debian.org/tracker/CVE-2022-49490>

---

Data as of 2026-12-06T09:19:32.742Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
