{"id":"CVE-2022-49490","published":"2025-02-26T02:13:27Z","modified":"2026-05-11T19:00:54Z","title":"drm/msm/mdp5: Return error code in mdp5_pipe_release when deadlock is detected","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm/mdp5: Return error code in mdp5_pipe_release when deadlock is detected\n\nmdp5_get_global_state runs the risk of hitting a -EDEADLK when acquiring\nthe modeset lock, but currently mdp5_pipe_release doesn't check for if\nan error is returned. Because of this, there is a possibility of\nmdp5_pipe_release hitting a NULL dereference error.\n\nTo avoid this, let's have mdp5_pipe_release check if\nmdp5_get_global_state returns an error and propogate that error.\n\nChanges since v1:\n- Separated declaration and initialization of *new_state to avoid\n  compiler warning\n- Fixed some spelling mistakes in commit message\n\nChanges since v2:\n- Return 0 in case where hwpipe is NULL as this is considered normal\n  behavior\n- Added 2nd patch in series to fix a similar NULL dereference issue in\n  mdp5_mixer_release\n\nPatchwork: https://patchwork.freedesktop.org/patch/485179/","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00269,"percentile":0.1895,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/776f5c58bfe16cf322d71eeed3c5dda1eeac7e6b","tags":[]},{"url":"https://git.kernel.org/stable/c/b2aa2c4efe93e2580d6a8774b04fe2b99756a322","tags":[]},{"url":"https://git.kernel.org/stable/c/49dc28b4b2e28ef7564e355c91487996c1cbebd7","tags":[]},{"url":"https://git.kernel.org/stable/c/04bef5f1ba8ea6d7c1c8f5f65e0395c62db59cb8","tags":[]},{"url":"https://git.kernel.org/stable/c/19964dfb39bda4d7716a71009488f0668ecbcf52","tags":[]},{"url":"https://git.kernel.org/stable/c/33dc5aac46e0fad8f5eb193e5906ed0eb6b66ceb","tags":[]},{"url":"https://git.kernel.org/stable/c/d59be579fa932c46b908f37509f319cbd4ca9a68","tags":[]}],"priority":{"score":3.8,"factors":[{"name":"EPSS percentile","points":3.79}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 7907a0d77cb461f58045763c205a5830be72e97c, < 776f5c58bfe16cf322d71eeed3c5dda1eeac7e6b",">= 7907a0d77cb461f58045763c205a5830be72e97c, < b2aa2c4efe93e2580d6a8774b04fe2b99756a322",">= 7907a0d77cb461f58045763c205a5830be72e97c, < 49dc28b4b2e28ef7564e355c91487996c1cbebd7",">= 7907a0d77cb461f58045763c205a5830be72e97c, < 04bef5f1ba8ea6d7c1c8f5f65e0395c62db59cb8",">= 7907a0d77cb461f58045763c205a5830be72e97c, < 19964dfb39bda4d7716a71009488f0668ecbcf52",">= 7907a0d77cb461f58045763c205a5830be72e97c, < 33dc5aac46e0fad8f5eb193e5906ed0eb6b66ceb",">= 7907a0d77cb461f58045763c205a5830be72e97c, < d59be579fa932c46b908f37509f319cbd4ca9a68"]},{"vendor":"Linux","product":"Linux","versions":["4.18"]}],"euvd":{"id":"EUVD-2022-54739","exploited":false,"provenance":"source"}}