{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49490","id":"CVE-2022-49490","title":"drm/msm/mdp5: Return error code in mdp5_pipe_release when deadlock is detected","description":"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 dereferen","descriptionLong":"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/","published":"2025-02-26T02:13:27.529Z","updated":"2026-10-28T02:30:22.265558235Z","reserved":"2025-02-26T02:08:31.585Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7907a0d77cb461f58045763c205a5830be72e97c","lessThan":"776f5c58bfe16cf322d71eeed3c5dda1eeac7e6b","status":"affected","versionType":"git"},{"version":"7907a0d77cb461f58045763c205a5830be72e97c","lessThan":"b2aa2c4efe93e2580d6a8774b04fe2b99756a322","status":"affected","versionType":"git"},{"version":"7907a0d77cb461f58045763c205a5830be72e97c","lessThan":"49dc28b4b2e28ef7564e355c91487996c1cbebd7","status":"affected","versionType":"git"},{"version":"7907a0d77cb461f58045763c205a5830be72e97c","lessThan":"04bef5f1ba8ea6d7c1c8f5f65e0395c62db59cb8","status":"affected","versionType":"git"},{"version":"7907a0d77cb461f58045763c205a5830be72e97c","lessThan":"19964dfb39bda4d7716a71009488f0668ecbcf52","status":"affected","versionType":"git"},{"version":"7907a0d77cb461f58045763c205a5830be72e97c","lessThan":"33dc5aac46e0fad8f5eb193e5906ed0eb6b66ceb","status":"affected","versionType":"git"},{"version":"7907a0d77cb461f58045763c205a5830be72e97c","lessThan":"d59be579fa932c46b908f37509f319cbd4ca9a68","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.18","status":"affected"},{"version":"0","lessThan":"4.18","status":"unaffected","versionType":"semver"},{"version":"4.19.247","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.198","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.121","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.46","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.17.14","lessThanOrEqual":"5.17.*","status":"unaffected","versionType":"semver"},{"version":"5.18.3","lessThanOrEqual":"5.18.*","status":"unaffected","versionType":"semver"},{"version":"5.19","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/776f5c58bfe16cf322d71eeed3c5dda1eeac7e6b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b2aa2c4efe93e2580d6a8774b04fe2b99756a322","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/49dc28b4b2e28ef7564e355c91487996c1cbebd7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/04bef5f1ba8ea6d7c1c8f5f65e0395c62db59cb8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/19964dfb39bda4d7716a71009488f0668ecbcf52","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/33dc5aac46e0fad8f5eb193e5906ed0eb6b66ceb","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d59be579fa932c46b908f37509f319cbd4ca9a68","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49490.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49490","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00269,"epssPercentile":0.19361,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49490","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49490","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49490","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-49490","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}