drm/ioc32: stop speculation on the drm_compat_ioctl path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 505b5240329b922f21f91d5b5d1e535c805eca6d · < f0e441be08a2eab10b2d06fccfa267ee599dd6b3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/ioc32: stop speculation on the drm_compat_ioctl path
The drm compat ioctl path takes a user controlled pointer, and then dereferences it into a table of function pointers, the signature method of spectre problems. Fix this up by calling array_index_nospec() on the index to the function pointer list.
From the CVE record · Linux
The Linux kernel's DRM compat ioctl path uses a user-controlled index to access a function-pointer table without a speculation barrier. A local caller using this path may trigger speculative access to the table; the input does not specify an authentication requirement or a need for other user interaction.
Engineers running Linux kernels with the DRM compat ioctl path should check their deployments; affected versions are not specified.