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

- 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.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-01T14:15:07.933Z
- Modified: 2026-11-11T21:10:00.200Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 505b5240329b922f21f91d5b5d1e535c805eca6d before 46a60ee8956ef1975f00455f614761c7ecedc09d; from 505b5240329b922f21f91d5b5d1e535c805eca6d before 5bb398991f378ef74d90b14a6ea8b61ff96cc03a; from 505b5240329b922f21f91d5b5d1e535c805eca6d before d59c5d8539662d95887b4564f3f72ad38076a2d5; from 505b5240329b922f21f91d5b5d1e535c805eca6d before 489f2ef2b908898d01df697dc4fe1476674be640; from 505b5240329b922f21f91d5b5d1e535c805eca6d before 4a41c2b18fc05d30b718d2602cac339eae710b34; from 505b5240329b922f21f91d5b5d1e535c805eca6d before f0e441be08a2eab10b2d06fccfa267ee599dd6b3; from 505b5240329b922f21f91d5b5d1e535c805eca6d before 27ef84bba9b9d7b03418c60fbc6069ea0e87b13c; from 505b5240329b922f21f91d5b5d1e535c805eca6d before f8995c2df519f382525ca4bc90553ad2ec611067; abc60edcfc87771ff244763d4d19c67766f5dd0f; a2a840d6dcae960c2dfdf3fcb1b759e1b7d90663; 00279b505289f7529d9be2e78915d0483ffbd314; d04e6ea0cec9e7d6cba806508f657d2d0dc6cacf; and 7 more (not affected: before 4.20; from 5.10.253 up to 5.10.*; from 5.15.203 up to 5.15.*; from 6.1.168 up to 6.1.*; from 6.6.134 up to 6.6.*; from 6.12.81 up to 6.12.*; from 6.18.22 up to 6.18.*; from 6.19.12 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 3.16.63 before 3.17; from 4.4.170 before 4.5; from 4.9.148 before 4.10; from 4.14.91 before 4.15; from 4.19.13 before 4.20; from 4.20.1 before 5.10.253; from 5.11 before 5.15.203; from 5.16 before 6.1.168; from 6.2 before 6.6.134; from 6.7 before 6.12.81; from 6.13 before 6.18.22; from 6.19 before 6.19.12; and 2 more

## References

- <https://git.kernel.org/stable/c/46a60ee8956ef1975f00455f614761c7ecedc09d> (patch)
- <https://git.kernel.org/stable/c/5bb398991f378ef74d90b14a6ea8b61ff96cc03a> (patch)
- <https://git.kernel.org/stable/c/d59c5d8539662d95887b4564f3f72ad38076a2d5> (patch)
- <https://git.kernel.org/stable/c/489f2ef2b908898d01df697dc4fe1476674be640> (patch)
- <https://git.kernel.org/stable/c/4a41c2b18fc05d30b718d2602cac339eae710b34> (patch)
- <https://git.kernel.org/stable/c/f0e441be08a2eab10b2d06fccfa267ee599dd6b3> (patch)
- <https://git.kernel.org/stable/c/27ef84bba9b9d7b03418c60fbc6069ea0e87b13c> (patch)
- <https://git.kernel.org/stable/c/f8995c2df519f382525ca4bc90553ad2ec611067> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-31781 · Whole record: https://cve.day/CVE-2026-31781.json · Rebuilt by cve.day 2026-11-25T22:59:20.385Z
