CVE-2026-31624

HID: core: clamp report_size in s32ton() to avoid undefined shift

No CVSS score yet EPSS 0.13%

Published 24 Apr 2026 Updated 6 Nov 2026 CNA: Linux

Check your servers for CVE-2026-31624

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31624 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

HID: core: clamp report_size in s32ton() to avoid undefined shift

s32ton() shifts by n-1 where n is the field's report_size, a value that comes directly from a HID device. The HID parser bounds report_size only to <= 256, so a broken HID device can supply a report descriptor with a wide field that triggers shift exponents up to 256 on a 32-bit type when an output report is built via hid_output_field() or hid_set_field().

Commit ec61b41918587 ("HID: core: fix shift-out-of-bounds in hid_report_raw_event") added the same n > 32 clamp to the function snto32(), but s32ton() was never given the same fix as I guess syzbot hadn't figured out how to fuzz a device the same way.

Fix this up by just clamping the max value of n, just like snto32() does.

Exploitation

EPSS 0.13%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.13% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 6 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from dde5845a529ff753364a6d1aea61180946270bfa, before 76ad02854a30c394e0c076e6e6bed0a388573a94
affected from dde5845a529ff753364a6d1aea61180946270bfa, before eb415ddaf25e09ddb8fe5736a70c9de2e6462534
affected from dde5845a529ff753364a6d1aea61180946270bfa, before 0ab048dbdb1daacf17d52e9252297eb6e1298e49
affected from dde5845a529ff753364a6d1aea61180946270bfa, before 932ae5309e53561197aa7d1606c7cf63af10e24f
affected from dde5845a529ff753364a6d1aea61180946270bfa, before 58386f00af710922cafb0fb69211497beddfaa95
affected from dde5845a529ff753364a6d1aea61180946270bfa, before 8a8333237f1f5caab8d4c3d2c2e7578c4263a97f
affected from dde5845a529ff753364a6d1aea61180946270bfa, before ea363a34086ddb4231adc581a7f36c39ec154bfc
affected from dde5845a529ff753364a6d1aea61180946270bfa, before 97014719bb8fccb1ffcbbc299e84b1f11b114195
affected from dde5845a529ff753364a6d1aea61180946270bfa, before 69c02ffde6ed4d535fa4e693a9e572729cad3d0d
Other versions: unaffected
Linux
affected 2.6.20
unaffected before 2.6.20
unaffected from 5.10.258 up to and including 5.10.*
unaffected from 5.15.209 up to and including 5.15.*
unaffected from 6.1.175 up to and including 6.1.*
unaffected from 6.6.136 up to and including 6.6.*
unaffected from 6.12.83 up to and including 6.12.*
unaffected from 6.18.24 up to and including 6.18.*
unaffected from 6.19.14 up to and including 6.19.*
unaffected from 7.0.1 up to and including 7.0.*
unaffected 7.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31624 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31624

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-31624
trivy image --scanners vuln IMAGE | grep CVE-2026-31624

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-31624 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.