CVE-2026-31624·Kernel vulnerability
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.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 7.0.1
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.17% — higher than 6% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 7.0
Until: 7.0.1
Fixed in: 7.0.1
How to fix this CVE
Update your Linux kernel to version 7.0.1 or later to patch a shift-out-of-bounds vulnerability in HID device report processing. This flaw allows malicious or malfunctioning HID devices to trigger undefined behavior by supplying oversized report fields. Kernel updates should be applied promptly and followed by a system reboot to ensure the patched code is loaded.
sudo dnf check-update kernel && sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r — confirm the version is 7.0.1 or later
- Verify vulnerable HID subsystem code path: grep -r 's32ton' /usr/src/linux-headers-$(uname -r)/drivers/hid/ 2>/dev/null || echo 'HID headers not installed'
- Search system logs for HID-related errors: grep -i 'hid.*error\|hid.*fault' /var/log/kern.log /var/log/messages 2>/dev/null | head -20
- Confirm patch status by checking kernel changelog: cat /proc/version && grep -i 'CVE-2026-31624' /usr/src/linux-headers-$(uname -r)/debian/changelog 2>/dev/null || grep 's32ton' /boot/config-$(uname -r) 2>/dev/null
FAQ
What is CVE-2026-31624?
This vulnerability exists in the Linux kernel's HID (Human Interface Device) core subsystem, where the s32ton() function fails to properly validate the bit-shift operation on report size values supplied by HID devices, potentially causing kernel instability when processing reports from malicious or defective devices.
Is CVE-2026-31624 being actively exploited?
No, CVE-2026-31624 is not listed on the CISA Known Exploited Vulnerabilities catalog and no public exploits are available, though the vulnerability can be triggered by crafted HID device descriptors.
What versions of Kernel are affected by CVE-2026-31624?
Linux kernel versions 7.0 through 7.0.1 are affected; the fix is included in kernel 7.0.1 and later releases.
How do I check if my server is vulnerable to CVE-2026-31624?
Run 'uname -r' and verify the kernel version is 7.0 or 7.0.1 without a later revision; if so, the system is vulnerable and requires a kernel update and reboot.
Does Defensia detect CVE-2026-31624?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-31624 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0ab048dbdb1daacf17d52e9252297eb6e1298e49
- https://git.kernel.org/stable/c/58386f00af710922cafb0fb69211497beddfaa95
- https://git.kernel.org/stable/c/69c02ffde6ed4d535fa4e693a9e572729cad3d0d
- https://git.kernel.org/stable/c/76ad02854a30c394e0c076e6e6bed0a388573a94
- https://git.kernel.org/stable/c/8a8333237f1f5caab8d4c3d2c2e7578c4263a97f
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31624. Free for 1 server.
Get started free