Bug 2389456 (CVE-2025-38556) - CVE-2025-38556 kernel: HID: core: Harden s32ton() against conversion to 0 bits
Summary: CVE-2025-38556 kernel: HID: core: Harden s32ton() against conversion to 0 bits
Keywords:
Status: NEW
Alias: CVE-2025-38556
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-08-19 18:01 UTC by OSIDB Bzimport
Modified: 2025-11-18 09:00 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:16372 0 None None None 2025-09-22 14:09:01 UTC
Red Hat Product Errata RHSA-2025:17760 0 None None None 2025-10-13 04:01:36 UTC
Red Hat Product Errata RHSA-2025:17776 0 None None None 2025-10-13 08:59:11 UTC
Red Hat Product Errata RHSA-2025:18932 0 None None None 2025-10-22 00:23:14 UTC
Red Hat Product Errata RHSA-2025:19104 0 None None None 2025-10-27 16:19:21 UTC
Red Hat Product Errata RHSA-2025:19222 0 None None None 2025-10-29 00:36:14 UTC
Red Hat Product Errata RHSA-2025:19223 0 None None None 2025-10-29 00:15:56 UTC
Red Hat Product Errata RHSA-2025:19224 0 None None None 2025-10-29 00:35:46 UTC
Red Hat Product Errata RHSA-2025:19268 0 None None None 2025-10-29 15:11:46 UTC
Red Hat Product Errata RHSA-2025:19492 0 None None None 2025-11-03 15:53:36 UTC
Red Hat Product Errata RHSA-2025:21063 0 None None None 2025-11-12 02:37:53 UTC
Red Hat Product Errata RHSA-2025:21082 0 None None None 2025-11-12 04:25:19 UTC
Red Hat Product Errata RHSA-2025:21667 0 None None None 2025-11-18 09:00:45 UTC

Description OSIDB Bzimport 2025-08-19 18:01:36 UTC
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.

Comment 3 errata-xmlrpc 2025-09-22 14:09:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:16372 https://access.redhat.com/errata/RHSA-2025:16372

Comment 4 errata-xmlrpc 2025-10-13 04:01:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:17760 https://access.redhat.com/errata/RHSA-2025:17760

Comment 5 errata-xmlrpc 2025-10-13 08:59:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2025:17776 https://access.redhat.com/errata/RHSA-2025:17776

Comment 12 errata-xmlrpc 2025-10-22 00:23:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2025:18932 https://access.redhat.com/errata/RHSA-2025:18932

Comment 13 errata-xmlrpc 2025-10-27 16:19:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:19104 https://access.redhat.com/errata/RHSA-2025:19104

Comment 14 errata-xmlrpc 2025-10-29 00:15:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2025:19223 https://access.redhat.com/errata/RHSA-2025:19223

Comment 15 errata-xmlrpc 2025-10-29 00:35:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2025:19224 https://access.redhat.com/errata/RHSA-2025:19224

Comment 16 errata-xmlrpc 2025-10-29 00:36:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2025:19222 https://access.redhat.com/errata/RHSA-2025:19222

Comment 17 errata-xmlrpc 2025-10-29 15:11:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2025:19268 https://access.redhat.com/errata/RHSA-2025:19268

Comment 18 errata-xmlrpc 2025-11-03 15:53:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2025:19492 https://access.redhat.com/errata/RHSA-2025:19492

Comment 19 errata-xmlrpc 2025-11-12 02:37:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2025:21063 https://access.redhat.com/errata/RHSA-2025:21063

Comment 20 errata-xmlrpc 2025-11-12 04:25:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2025:21082 https://access.redhat.com/errata/RHSA-2025:21082

Comment 21 errata-xmlrpc 2025-11-18 09:00:44 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

Via RHSA-2025:21667 https://access.redhat.com/errata/RHSA-2025:21667


Note You need to log in before you can comment on or make changes to this bug.