CVE-2022-49122
dm ioctl: prevent potential spectre v1 gadget
Check your servers for CVE-2022-49122
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-49122 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:
dm ioctl: prevent potential spectre v1 gadget
It appears like cmd could be a Spectre v1 gadget as it's supplied by a user and used as an array index. Prevent the contents of kernel memory from being leaked to userspace via speculative execution by using array_index_nospec.
Exploitation
EPSS 0.31%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 25.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 76c94651005f58885facf9c973007f5ea01ab01f affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 58880025e3362024f6d8ea01cb0c7a5df6c84ba6 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 7ae2c5b89da3cfaf856df880af27d3bb32a74b3d affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 0320bac5801b31407200227173205d017488f140 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 71c8df33fd777c7628f6fbc09b14e84806c55914 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 02cc46f397eb3691c56affbd5073e54f7a82ac32 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 44e6cb3ab177faae840bb2c1ebda9a2539876184 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before dd86064417de828ff2102ddc6049c829bf7585b4 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before cd9c88da171a62c4b0f1c70e50c75845969fbc18
Other versions: unaffected
|
| Linux |
affected 2.6.12 unaffected before 2.6.12 unaffected from 4.9.311 up to and including 4.9.* unaffected from 4.14.276 up to and including 4.14.* unaffected from 4.19.238 up to and including 4.19.* unaffected from 5.4.189 up to and including 5.4.* unaffected from 5.10.111 up to and including 5.10.* unaffected from 5.15.34 up to and including 5.15.* unaffected from 5.16.20 up to and including 5.16.* unaffected from 5.17.3 up to and including 5.17.* unaffected 5.18 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-49122 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49122
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-49122
trivy image --scanners vuln IMAGE | grep CVE-2022-49122
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/76c94651005f58885facf9c973007f5ea01ab01f git.kernel.org
- https://git.kernel.org/stable/c/58880025e3362024f6d8ea01cb0c7a5df6c84ba6 git.kernel.org
- https://git.kernel.org/stable/c/7ae2c5b89da3cfaf856df880af27d3bb32a74b3d git.kernel.org
- https://git.kernel.org/stable/c/0320bac5801b31407200227173205d017488f140 git.kernel.org
- https://git.kernel.org/stable/c/71c8df33fd777c7628f6fbc09b14e84806c55914 git.kernel.org
- https://git.kernel.org/stable/c/02cc46f397eb3691c56affbd5073e54f7a82ac32 git.kernel.org
- https://git.kernel.org/stable/c/44e6cb3ab177faae840bb2c1ebda9a2539876184 git.kernel.org
- https://git.kernel.org/stable/c/dd86064417de828ff2102ddc6049c829bf7585b4 git.kernel.org
- https://git.kernel.org/stable/c/cd9c88da171a62c4b0f1c70e50c75845969fbc18 git.kernel.org
Source: the record CVE-2022-49122 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