CVE-2022-49490
drm/msm/mdp5: Return error code in mdp5_pipe_release when deadlock is detected
Check your servers for CVE-2022-49490
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49490 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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/
Exploitation
EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 20.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 7907a0d77cb461f58045763c205a5830be72e97c, before 776f5c58bfe16cf322d71eeed3c5dda1eeac7e6b affected from 7907a0d77cb461f58045763c205a5830be72e97c, before b2aa2c4efe93e2580d6a8774b04fe2b99756a322 affected from 7907a0d77cb461f58045763c205a5830be72e97c, before 49dc28b4b2e28ef7564e355c91487996c1cbebd7 affected from 7907a0d77cb461f58045763c205a5830be72e97c, before 04bef5f1ba8ea6d7c1c8f5f65e0395c62db59cb8 affected from 7907a0d77cb461f58045763c205a5830be72e97c, before 19964dfb39bda4d7716a71009488f0668ecbcf52 affected from 7907a0d77cb461f58045763c205a5830be72e97c, before 33dc5aac46e0fad8f5eb193e5906ed0eb6b66ceb affected from 7907a0d77cb461f58045763c205a5830be72e97c, before d59be579fa932c46b908f37509f319cbd4ca9a68
Other versions: unaffected
|
| Linux |
affected 4.18 unaffected before 4.18 unaffected from 4.19.247 up to and including 4.19.* unaffected from 5.4.198 up to and including 5.4.* unaffected from 5.10.121 up to and including 5.10.* unaffected from 5.15.46 up to and including 5.15.* unaffected from 5.17.14 up to and including 5.17.* unaffected from 5.18.3 up to and including 5.18.* unaffected 5.19 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49490 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49490
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-49490
trivy image --scanners vuln IMAGE | grep CVE-2022-49490
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/776f5c58bfe16cf322d71eeed3c5dda1eeac7e6b git.kernel.org
- https://git.kernel.org/stable/c/b2aa2c4efe93e2580d6a8774b04fe2b99756a322 git.kernel.org
- https://git.kernel.org/stable/c/49dc28b4b2e28ef7564e355c91487996c1cbebd7 git.kernel.org
- https://git.kernel.org/stable/c/04bef5f1ba8ea6d7c1c8f5f65e0395c62db59cb8 git.kernel.org
- https://git.kernel.org/stable/c/19964dfb39bda4d7716a71009488f0668ecbcf52 git.kernel.org
- https://git.kernel.org/stable/c/33dc5aac46e0fad8f5eb193e5906ed0eb6b66ceb git.kernel.org
- https://git.kernel.org/stable/c/d59be579fa932c46b908f37509f319cbd4ca9a68 git.kernel.org
Source: the record CVE-2022-49490 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse