All reports
Medium

kernel: kernel: Denial of Service via invalid bit shift in s32ton()

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-99332

Probability of exploitation in the next 30 days: 0.22%

FIRST EPSS · 2026-11-21

Description

In the Linux kernel, the following vulnerability has been resolved: HID: core: Fix out-of-bounds left shift by 32 in s32ton() Syzbot reported an out-of-bounds shift (32-bit integer shifted left by 32) in the s32ton() routine in the HID core. This routine converts a signed 32-bit integer to a signed n-bit integer, and it caps the value of n at 32. But when n == 32 there's no need to do anything; it can simply return the input value. This will avoid calculating (1 << n) when n is 32, which was the cause of the invalid shift.

A flaw was found in the Linux kernel's Human Interface Device (HID) subsystem. An invalid bit-shift calculation occurs in the s32ton() function when processing 32-bit integer values from HID reports. An attacker capable of supplying crafted device data could exploit this issue to trigger undefined kernel behavior, potentially leading to a system crash and Denial of Service (DoS).