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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
58386f00af710922cafb0fb69211497beddfaa95 to < 8bc6279634b03222d79788481810562a7d3564feaffected8a8333237f1f5caab8d4c3d2c2e7578c4263a97f to < 076bea989f998f4d5a62d74de2f04f6f5b94b3f3affected69c02ffde6ed4d535fa4e693a9e572729cad3d0d to < 20518a118bf185e72f769eb07aeed5848c095d31affected69c02ffde6ed4d535fa4e693a9e572729cad3d0d to < 5fe63b415c636c7f4f6848a8e53bdd4bbf0c300daffected76ad02854a30c394e0c076e6e6bed0a388573a94affectedeb415ddaf25e09ddb8fe5736a70c9de2e6462534affected0ab048dbdb1daacf17d52e9252297eb6e1298e49affected932ae5309e53561197aa7d1606c7cf63af10e24faffectedea363a34086ddb4231adc581a7f36c39ec154bfcaffected97014719bb8fccb1ffcbbc299e84b1f11b114195affected6.12.83 to < 6.12.117affected6.18.24 to < 6.18.61affected5.10.258 to < 5.11affected5.15.209 to < 5.16affected6.1.175 to < 6.2affected6.6.136 to < 6.7affected6.19.14 to < 6.20affected7.0.1 to < 7.1affected
Linux Linux
Default version status: affected
7.1affected0 to < 7.1unaffected6.12.117 to ≤ 6.12.*unaffected6.18.61 to ≤ 6.18.*unaffected7.3.2 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected