dm ioctl: prevent potential spectre v1 gadget
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 02cc46f397eb3691c56affbd5073e54f7a82ac32| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's dm ioctl code uses a user-supplied command as an array index, creating a potential Spectre v1 gadget. A local user could potentially leak kernel memory to userspace through speculative execution; the input does not specify whether authentication is required.
Anyone running the Linux kernel should check whether their version is affected; affected versions are not specified.