CVE-2025-38556
HID: core: Harden s32ton() against conversion to 0 bits
Reported by linux · Published August 19, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| bpftool | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| linux_kernel | linux | 6.16.1, 6.15.10, 6.12.46 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | dde5845a529ff753364a6d1aea61180946270bfa, dde5845a529ff753364a6d1aea61180946270bfa, dde5845a529ff753364a6d1aea61180946270bfa |
| Linux | Linux | 2.6.20, 0, 5.10.248 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| linux | linux_kernel | 2.6.20, 2.6.20, 2.6.20 |
| amazon:2023 | kernel-livepatch-6.12.46-66.121 | 0 |
| amazon:2023 | kernel-livepatch-6.1.159-181.297 | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
…and 12 more
Timeline
- Aug 19, 2025 CVE Published
- Aug 20, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (32 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (229 in total, the first dated here)
- Mar 29, 2026 Security Advisory (254 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
- Jun 11, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38556
vulnetix vdb fixes CVE-2025-38556
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38556/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart