HID: core: Fix out-of-bounds left shift by 32 in s32ton()
- State
- Published
- Severity
- Not Scored
- Published
- Nov 19, 2026
- Updated
- Nov 23, 2026
- Reserved
- Sep 25, 2026
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.
| Product | Versions |
|---|---|
| Linux Linux | 76ad02854a30c394e0c076e6e6bed0a388573a94 to before 982413b709dd105cdf34bdfa9c4a8063ce574dea Affectedeb415ddaf25e09ddb8fe5736a70c9de2e6462534 to before 4a9540176af7f784ba3660a8da45bf66defc9960 Affected0ab048dbdb1daacf17d52e9252297eb6e1298e49 to before a34e4bd9c4ef339cb99dd533bf24a077b84dd099 Affected932ae5309e53561197aa7d1606c7cf63af10e24f to before e0581a828c8cab80f13f70a4371bf5fc101f68c8 Affected58386f00af710922cafb0fb69211497beddfaa95 to before 8bc6279634b03222d79788481810562a7d3564fe Affected8a8333237f1f5caab8d4c3d2c2e7578c4263a97f to before 076bea989f998f4d5a62d74de2f04f6f5b94b3f3 Affected69c02ffde6ed4d535fa4e693a9e572729cad3d0d to before 20518a118bf185e72f769eb07aeed5848c095d31 Affected69c02ffde6ed4d535fa4e693a9e572729cad3d0d to before 5fe63b415c636c7f4f6848a8e53bdd4bbf0c300d Affectedea363a34086ddb4231adc581a7f36c39ec154bfc Affected97014719bb8fccb1ffcbbc299e84b1f11b114195 Affected5.10.258 to before 5.10.275 Affected5.15.209 to before 5.15.226 Affected6.1.175 to before 6.1.193 Affected6.6.136 to before 6.6.163 Affected6.12.83 to before 6.12.117 Affected6.18.24 to before 6.18.61 Affected6.19.14 to before 6.20 Affected7.0.1 to before 7.1 Affected |
| Linux Linux | 7.1 Affectedbefore 7.1 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.61 through 6.18.* Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/982413b709dd105cdf34bdfa9c4a8063ce574dea
- https://git.kernel.org/stable/c/4a9540176af7f784ba3660a8da45bf66defc9960
- https://git.kernel.org/stable/c/a34e4bd9c4ef339cb99dd533bf24a077b84dd099
- https://git.kernel.org/stable/c/e0581a828c8cab80f13f70a4371bf5fc101f68c8
- https://git.kernel.org/stable/c/8bc6279634b03222d79788481810562a7d3564fe
- https://git.kernel.org/stable/c/076bea989f998f4d5a62d74de2f04f6f5b94b3f3
- https://git.kernel.org/stable/c/20518a118bf185e72f769eb07aeed5848c095d31
- https://git.kernel.org/stable/c/5fe63b415c636c7f4f6848a8e53bdd4bbf0c300d
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.