VDB

CVE-2025-38556

CVE-2025-38556 PUBLISHED

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.

PackageEcosystemFixed in
perfAmazon Linux1:6.1.159-181.297.amzn2023
kernel-libbpf-develAmazon Linux1:6.1.159-181.297.amzn2023
kernelAmazon Linux1:6.1.159-181.297.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.159-181.297.amzn2023
kernel6.12Amazon Linux1:6.12.46-66.121.amzn2023
python3-perf6.12Amazon Linux1:6.12.46-66.121.amzn2023
bpftoolAmazon Linux1:6.1.159-181.297.amzn2023
kernel6.12-develAmazon Linux1:6.12.46-66.121.amzn2023
python3-perfAmazon Linux1:6.1.159-181.297.amzn2023
linux_kernellinux6.16.1, 6.15.10, 6.12.46

Affected products

VendorProductVersions
LinuxLinuxdde5845a529ff753364a6d1aea61180946270bfa, dde5845a529ff753364a6d1aea61180946270bfa, dde5845a529ff753364a6d1aea61180946270bfa
LinuxLinux2.6.20, 0, 5.10.248
amazon:2023perf0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel6.120
amazon:2023python3-perf6.120
amazon:2023bpftool0
amazon:2023kernel6.12-devel0
amazon:2023python3-perf0
linuxlinux_kernel2.6.20, 2.6.20, 2.6.20
amazon:2023kernel-livepatch-6.12.46-66.1210
amazon:2023kernel-livepatch-6.1.159-181.2970
amazon:2023kernel-headers0
amazon:2023kernel-devel0
amazon:2023perf6.120
amazon:2023kernel-libbpf-static0
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-modules-extra0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›