# CVE-2022-49122: dm ioctl: prevent potential spectre v1 gadget

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2025-02-26T01:55:02.161Z
- Modified: 2026-06-17T05:17:08.683Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 76c94651005f58885facf9c973007f5ea01ab01f; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 58880025e3362024f6d8ea01cb0c7a5df6c84ba6; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 7ae2c5b89da3cfaf856df880af27d3bb32a74b3d; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 0320bac5801b31407200227173205d017488f140; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 71c8df33fd777c7628f6fbc09b14e84806c55914; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 02cc46f397eb3691c56affbd5073e54f7a82ac32; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 44e6cb3ab177faae840bb2c1ebda9a2539876184; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before dd86064417de828ff2102ddc6049c829bf7585b4; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before cd9c88da171a62c4b0f1c70e50c75845969fbc18; 2.6.12 (not affected: before 2.6.12; from 4.9.311 up to 4.9.*; from 4.14.276 up to 4.14.*; from 4.19.238 up to 4.19.*; from 5.4.189 up to 5.4.*; from 5.10.111 up to 5.10.*; from 5.15.34 up to 5.15.*; from 5.16.20 up to 5.16.*; from 5.17.3 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: before 4.9.311; from 4.10 before 4.14.276; from 4.15 before 4.19.238; from 4.20 before 5.4.189; from 5.5 before 5.10.111; from 5.11 before 5.15.34; from 5.16 before 5.16.20; from 5.17 before 5.17.3

## References

- <https://git.kernel.org/stable/c/76c94651005f58885facf9c973007f5ea01ab01f> (patch)
- <https://git.kernel.org/stable/c/58880025e3362024f6d8ea01cb0c7a5df6c84ba6> (patch)
- <https://git.kernel.org/stable/c/7ae2c5b89da3cfaf856df880af27d3bb32a74b3d> (patch)
- <https://git.kernel.org/stable/c/0320bac5801b31407200227173205d017488f140> (patch)
- <https://git.kernel.org/stable/c/71c8df33fd777c7628f6fbc09b14e84806c55914> (patch)
- <https://git.kernel.org/stable/c/02cc46f397eb3691c56affbd5073e54f7a82ac32> (patch)
- <https://git.kernel.org/stable/c/44e6cb3ab177faae840bb2c1ebda9a2539876184> (patch)
- <https://git.kernel.org/stable/c/dd86064417de828ff2102ddc6049c829bf7585b4> (patch)
- <https://git.kernel.org/stable/c/cd9c88da171a62c4b0f1c70e50c75845969fbc18> (patch)

## Sources

- CVE List: [CVE-2022-49122](https://www.cve.org/CVERecord?id=CVE-2022-49122), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49122](https://nvd.nist.gov/vuln/detail/CVE-2022-49122), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49122 · Whole record: https://cve.day/CVE-2022-49122.json · Rebuilt by cve.day 2026-11-25T22:58:20.195Z
