CVE-2026-31781 drm/ioc32: stop speculation on the drm_compat_ioctl path

Medium 5.5 Published Updated

Attackers can exploit speculative execution flaws in the Linux kernel DRM compat ioctl path to potentially leak sensitive memory contents.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-31781?

CVE-2026-31781 is a medium-severity vulnerability in Linux kernel, published on 1 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Which versions are affected by CVE-2026-31781?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2026-31781?

Apply the vendor's patch.

Is CVE-2026-31781 being exploited?

There is no known exploitation of CVE-2026-31781 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2026-31781, DEBIAN-CVE-2026-31781, GHSA-qq7p-hhwh-9jp5, ROOT-OS-DEBIAN-11-CVE-2026-31781, ROOT-OS-UBUNTU-2204-CVE-2026-31781, ROOT-OS-UBUNTU-2404-CVE-2026-31781 and 1 more.

Is CVE-2026-31781 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free