Bug 2300402 (CVE-2024-41035) - CVE-2024-41035 kernel: USB: core: Fix duplicate endpoint bug by clearing reserved bits in the descriptor
Summary: CVE-2024-41035 kernel: USB: core: Fix duplicate endpoint bug by clearing rese...
Keywords:
Status: NEW
Alias: CVE-2024-41035
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: 2301536
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-29 15:32 UTC by OSIDB Bzimport
Modified: 2024-10-17 06:46 UTC (History)
7 users (show)

Fixed In Version: kernel 4.19.318, kernel 5.4.280, kernel 5.10.222, kernel 5.15.163, kernel 6.1.100, kernel 6.6.41, kernel 6.9.10, kernel 6.10
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2024:7043 0 None None None 2024-09-24 09:43:21 UTC
Red Hat Product Errata RHBA-2024:7198 0 None None None 2024-09-26 09:49:02 UTC
Red Hat Product Errata RHBA-2024:7236 0 None None None 2024-09-26 14:37:52 UTC
Red Hat Product Errata RHBA-2024:7637 0 None None None 2024-10-03 14:46:10 UTC
Red Hat Product Errata RHBA-2024:8227 0 None None None 2024-10-17 06:46:23 UTC
Red Hat Product Errata RHSA-2024:7000 0 None None None 2024-09-24 02:35:01 UTC
Red Hat Product Errata RHSA-2024:7001 0 None None None 2024-09-24 00:39:40 UTC

Description OSIDB Bzimport 2024-07-29 15:32:20 UTC
In the Linux kernel, the following vulnerability has been resolved:

USB: core: Fix duplicate endpoint bug by clearing reserved bits in the descriptor

Syzbot has identified a bug in usbcore (see the Closes: tag below)
caused by our assumption that the reserved bits in an endpoint
descriptor's bEndpointAddress field will always be 0.  As a result of
the bug, the endpoint_is_duplicate() routine in config.c (and possibly
other routines as well) may believe that two descriptors are for
distinct endpoints, even though they have the same direction and
endpoint number.  This can lead to confusion, including the bug
identified by syzbot (two descriptors with matching endpoint numbers
and directions, where one was interrupt and the other was bulk).

To fix the bug, we will clear the reserved bits in bEndpointAddress
when we parse the descriptor.  (Note that both the USB-2.0 and USB-3.1
specs say these bits are "Reserved, reset to zero".)  This requires us
to make a copy of the descriptor earlier in usb_parse_endpoint() and
use the copy instead of the original when checking for duplicates.

Comment 1 Mauro Matteo Cascella 2024-07-30 09:01:19 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024072922-CVE-2024-41035-5e6b@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 09:01:39 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301536]

Comment 16 errata-xmlrpc 2024-09-24 00:39:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:7001 https://access.redhat.com/errata/RHSA-2024:7001

Comment 17 errata-xmlrpc 2024-09-24 02:35:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:7000 https://access.redhat.com/errata/RHSA-2024:7000


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