All reports
Medium

kernel: dm ioctl: prevent potential spectre v1 gadget

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-49122

Probability of exploitation in the next 30 days: 0.31%

FIRST EPSS · 2026-11-21

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.

A vulnerability was found in the Linux kernel's dm-ioctl interface in the lookup_ioctl() function, which accepts a user-provided cmd value that is used to index the _ioctls array directly. This issue could lead to an out-of-bounds access if the CPU speculatively executes the array access before cmd is confirmed as valid, allowing an attacker to exploit a Spectre v1 gadget attack.