CVE-2025-38556

HID: core: Harden s32ton() against conversion to 0 bits

HIGH
7.1
CVSS Score
Published: August 19, 2025 at 05:02 PM UTC
Updated: June 17, 2026 at 09:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: HID: core: Harden s32ton() against conversion to 0 bits Testing by the syzbot fuzzer showed that the HID core gets a shift-out-of-bounds exception when it tries to convert a 32-bit quantity to a 0-bit quantity. Ideally this should never occur, but there are buggy devices and some might have a report field with size set to zero; we shouldn't reject the report or the device just because of that. Instead, harden the s32ton() routine so that it returns a reasonable result instead of crashing when it is called with the number of bits set to 0 -- the same as what snto32() does.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.20 ≤ v < 5.10.2482.6.20 ≤ v < 5.15.1982.6.20 ≤ v < 6.1.1592.6.20 ≤ v < 6.12.462.6.20 ≤ v < 6.15.102.6.20 ≤ v < 6.16.12.6.20 ≤ v < 6.172.6.20 ≤ v < 6.6.1196.13 ≤ v < 6.15.106.16 ≤ v < 6.16.12.6.20dde5845a529ff753364a6d1aea61180946270bfa
Vendor states this is fixed in 3c86548a20d7bc2861aa4de044991a327bebad1a (fixed)
Vendor states this is fixed in 6cdf6c708717c5c6897d0800a1793e83757c7491 (fixed)
Vendor states this is fixed in 810189546cb6c8f36443ed091d91f1f5d2fc2ec7 (fixed)
Vendor states this is fixed in 865ad8469fa24de1559f247d9426ab01e5ce3a56 (fixed)
Vendor states this is fixed in 8b4a94b1510f6a46ec48494b52ee8f67eb4fc836 (fixed)
Vendor states this is fixed in a6b87bfc2ab5bccb7ad953693c85d9062aef3fdd (fixed)
Vendor states this is fixed in d3b504146c111548ab60b6ef7aad00bfb1db05a2 (fixed)
Vendor states this is fixed in eeeaba737919bdce9885e2a00ac2912f61a3684d (fixed)
Vendor states this is fixed in 2.6.20 (unaffected)
Vendor states this is fixed in 5.10.248 (unaffected)
Vendor states this is fixed in 5.15.198 (unaffected)
Vendor states this is fixed in 6.1.159 (unaffected)
Vendor states this is fixed in 6.12.46 (unaffected)
Vendor states this is fixed in 6.15.10 (unaffected)
Vendor states this is fixed in 6.16.1 (unaffected)
Vendor states this is fixed in 6.17 (unaffected)
Vendor states this is fixed in 6.6.119 (unaffected)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card