CVE-2022-49490

drm/msm/mdp5: Return error code in mdp5_pipe_release when deadlock is detected

State
Published
Severity
Not scored
Published
Feb 26, 2025
Updated
May 11, 2026
Reserved
Feb 26, 2025

Read the record on cve.org

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

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 7907a0d77cb461f58045763c205a5830be72e97c to before 776f5c58bfe16cf322d71eeed3c5dda1eeac7e6bAffected
  • 7907a0d77cb461f58045763c205a5830be72e97c to before b2aa2c4efe93e2580d6a8774b04fe2b99756a322Affected
  • 7907a0d77cb461f58045763c205a5830be72e97c to before 49dc28b4b2e28ef7564e355c91487996c1cbebd7Affected
  • 7907a0d77cb461f58045763c205a5830be72e97c to before 04bef5f1ba8ea6d7c1c8f5f65e0395c62db59cb8Affected
  • 7907a0d77cb461f58045763c205a5830be72e97c to before 19964dfb39bda4d7716a71009488f0668ecbcf52Affected
  • 7907a0d77cb461f58045763c205a5830be72e97c to before 33dc5aac46e0fad8f5eb193e5906ed0eb6b66cebAffected
  • 7907a0d77cb461f58045763c205a5830be72e97c to before d59be579fa932c46b908f37509f319cbd4ca9a68Affected
LinuxLinux
  • 4.18Affected
  • before 4.18Not affected
  • 4.19.247 through 4.19.*Not affected
  • 5.4.198 through 5.4.*Not affected
  • 5.10.121 through 5.10.*Not affected
  • 5.15.46 through 5.15.*Not affected
  • 5.17.14 through 5.17.*Not affected
  • 5.18.3 through 5.18.*Not affected
  • 5.19 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.