CVE-2026-74683 PUBLISHED

Input: evdev - sanitize event type index when fetching event masks

Assigner: Linux
Reserved: 15.08.2026 Published: 22.08.2026 Updated: 22.08.2026

In the Linux kernel, the following vulnerability has been resolved:

Input: evdev - sanitize event type index when fetching event masks

The user-supplied event type index passed to EVIOCGMASK / EVIOCSMASK ioctls is used to index the static counts array in evdev_get_mask_cnt() and client evmasks array in evdev_get_mask().

While the event type is architecturally bounded by EV_CNT, speculative execution may mispredict bounds checks and perform out-of-bounds loads.

Sanitize the event type index in evdev_get_mask_cnt() branchlessly using array_index_mask_nospec(). This clamps the index to 0 for safe array access and forces the returned count to 0 speculatively when the index is out of bounds.

We do not need additional array_index_nospec() calls in evdev_get_mask() because evdev_get_mask_cnt() speculatively forces the count (and resulting xfer_size) to 0 for out-of-bounds types, preventing any speculative memory access to client evmasks array.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to c79b08d8fa230871a3634e34a66e591ac2d084ef (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to f27fa9b39f925d26e034a1f382cb45523138f4ae (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to f3fc329acad9a71b3c077237cbac20670d2358c8 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 5db341189bb7ff041d570dbe36ecca7e32913927 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 433913b4a92214d76e9f0c03ad9128fec943d5f8 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 4034ef247a9dde3f56660b01f0c3280dac6b1274 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 810e1883d4815f29c30d900ad7333d03cc2515d1 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 3abd29c61d2ef37c4102cf755b18be53bb9dbea6 (excl.)
  • affected from 0 to 5.10.265 (excl.)
  • affected from 0 to 5.15.216 (excl.)
  • affected from 0 to 6.1.183 (excl.)
  • affected from 0 to 6.6.152 (excl.)
  • affected from 0 to 6.12.104 (excl.)
  • affected from 0 to 6.18.45 (excl.)
  • affected from 0 to 7.1.9 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • unaffected from 5.10.265 to 5.10.* (incl.)
  • unaffected from 5.15.216 to 5.15.* (incl.)
  • unaffected from 6.1.183 to 6.1.* (incl.)
  • unaffected from 6.6.152 to 6.6.* (incl.)
  • unaffected from 6.12.104 to 6.12.* (incl.)
  • unaffected from 6.18.45 to 6.18.* (incl.)
  • unaffected from 7.1.9 to 7.1.* (incl.)
  • unaffected from 7.2 to * (incl.)

References