{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38556","id":"CVE-2025-38556","title":"HID: core: Harden s32ton() against conversion to 0 bits","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: core: Harden s32ton() against conversion to 0 bits\n\nTesting by the syzbot fuzzer showed that the HID core gets a\nshift-out-of-bounds exception when it tries to convert a 32-bit\nquantity to a 0-bit quantity.  Ideally this should never occur, but\nthere are buggy devices and some might have a report field with size\nset to zero;","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: core: Harden s32ton() against conversion to 0 bits\n\nTesting by the syzbot fuzzer showed that the HID core gets a\nshift-out-of-bounds exception when it tries to convert a 32-bit\nquantity to a 0-bit quantity.  Ideally this should never occur, but\nthere are buggy devices and some might have a report field with size\nset to zero; we shouldn't reject the report or the device just because\nof that.\n\nInstead, harden the s32ton() routine so that it returns a reasonable\nresult instead of crashing when it is called with the number of bits\nset to 0 -- the same as what snto32() does.","published":"2025-08-19T17:02:34.929Z","updated":"2026-10-28T02:30:50.799385651Z","reserved":"2025-04-16T04:51:24.025Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"dde5845a529ff753364a6d1aea61180946270bfa","lessThan":"6cdf6c708717c5c6897d0800a1793e83757c7491","status":"affected","versionType":"git"},{"version":"dde5845a529ff753364a6d1aea61180946270bfa","lessThan":"eeeaba737919bdce9885e2a00ac2912f61a3684d","status":"affected","versionType":"git"},{"version":"dde5845a529ff753364a6d1aea61180946270bfa","lessThan":"3c86548a20d7bc2861aa4de044991a327bebad1a","status":"affected","versionType":"git"},{"version":"dde5845a529ff753364a6d1aea61180946270bfa","lessThan":"810189546cb6c8f36443ed091d91f1f5d2fc2ec7","status":"affected","versionType":"git"},{"version":"dde5845a529ff753364a6d1aea61180946270bfa","lessThan":"d3b504146c111548ab60b6ef7aad00bfb1db05a2","status":"affected","versionType":"git"},{"version":"dde5845a529ff753364a6d1aea61180946270bfa","lessThan":"8b4a94b1510f6a46ec48494b52ee8f67eb4fc836","status":"affected","versionType":"git"},{"version":"dde5845a529ff753364a6d1aea61180946270bfa","lessThan":"865ad8469fa24de1559f247d9426ab01e5ce3a56","status":"affected","versionType":"git"},{"version":"dde5845a529ff753364a6d1aea61180946270bfa","lessThan":"a6b87bfc2ab5bccb7ad953693c85d9062aef3fdd","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.20","status":"affected"},{"version":"0","lessThan":"2.6.20","status":"unaffected","versionType":"semver"},{"version":"5.10.248","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.198","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.159","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.119","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.46","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.10","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16.1","lessThanOrEqual":"6.16.*","status":"unaffected","versionType":"semver"},{"version":"6.17","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-125"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/6cdf6c708717c5c6897d0800a1793e83757c7491","tags":["web"]},{"url":"https://git.kernel.org/stable/c/eeeaba737919bdce9885e2a00ac2912f61a3684d","tags":["web"]},{"url":"https://git.kernel.org/stable/c/3c86548a20d7bc2861aa4de044991a327bebad1a","tags":["web"]},{"url":"https://git.kernel.org/stable/c/810189546cb6c8f36443ed091d91f1f5d2fc2ec7","tags":["web"]},{"url":"https://git.kernel.org/stable/c/d3b504146c111548ab60b6ef7aad00bfb1db05a2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8b4a94b1510f6a46ec48494b52ee8f67eb4fc836","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/865ad8469fa24de1559f247d9426ab01e5ce3a56","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a6b87bfc2ab5bccb7ad953693c85d9062aef3fdd","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38556.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38556","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00181,"epssPercentile":0.07804,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38556","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38556","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38556","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38556","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}