Bug 2300492 (CVE-2024-41097) - CVE-2024-41097 kernel: usb: atm: cxacru: fix endpoint checking in cxacru_bind()
Summary: CVE-2024-41097 kernel: usb: atm: cxacru: fix endpoint checking in cxacru_bind()
Keywords:
Status: NEW
Alias: CVE-2024-41097
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: 2301687
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-29 16:23 UTC by OSIDB Bzimport
Modified: 2024-10-17 06:46 UTC (History)
4 users (show)

Fixed In Version: kernel 4.19.317, kernel 5.4.279, kernel 5.10.221, kernel 5.15.162, kernel 6.1.97, kernel 6.6.37, kernel 6.9.8, 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:28 UTC
Red Hat Product Errata RHBA-2024:7198 0 None None None 2024-09-26 09:50:57 UTC
Red Hat Product Errata RHBA-2024:7236 0 None None None 2024-09-26 14:38:00 UTC
Red Hat Product Errata RHBA-2024:7637 0 None None None 2024-10-03 14:46:17 UTC
Red Hat Product Errata RHBA-2024:8227 0 None None None 2024-10-17 06:46:15 UTC
Red Hat Product Errata RHSA-2024:7000 0 None None None 2024-09-24 02:35:15 UTC
Red Hat Product Errata RHSA-2024:7001 0 None None None 2024-09-24 00:39:50 UTC

Description OSIDB Bzimport 2024-07-29 16:23:13 UTC
In the Linux kernel, the following vulnerability has been resolved:

usb: atm: cxacru: fix endpoint checking in cxacru_bind()

Syzbot is still reporting quite an old issue [1] that occurs due to
incomplete checking of present usb endpoints. As such, wrong
endpoints types may be used at urb sumbitting stage which in turn
triggers a warning in usb_submit_urb().

Fix the issue by verifying that required endpoint types are present
for both in and out endpoints, taking into account cmd endpoint type.

Unfortunately, this patch has not been tested on real hardware.

[1] Syzbot report:
usb 1-1: BOGUS urb xfer, pipe 1 != type 3
WARNING: CPU: 0 PID: 8667 at drivers/usb/core/urb.c:502 usb_submit_urb+0xed2/0x18a0 drivers/usb/core/urb.c:502
Modules linked in:
CPU: 0 PID: 8667 Comm: kworker/0:4 Not tainted 5.14.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:usb_submit_urb+0xed2/0x18a0 drivers/usb/core/urb.c:502
...
Call Trace:
 cxacru_cm+0x3c0/0x8e0 drivers/usb/atm/cxacru.c:649
 cxacru_card_status+0x22/0xd0 drivers/usb/atm/cxacru.c:760
 cxacru_bind+0x7ac/0x11a0 drivers/usb/atm/cxacru.c:1209
 usbatm_usb_probe+0x321/0x1ae0 drivers/usb/atm/usbatm.c:1055
 cxacru_usb_probe+0xdf/0x1e0 drivers/usb/atm/cxacru.c:1363
 usb_probe_interface+0x315/0x7f0 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:517 [inline]
 really_probe+0x23c/0xcd0 drivers/base/dd.c:595
 __driver_probe_device+0x338/0x4d0 drivers/base/dd.c:747
 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:777
 __device_attach_driver+0x20b/0x2f0 drivers/base/dd.c:894
 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:427
 __device_attach+0x228/0x4a0 drivers/base/dd.c:965
 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:487
 device_add+0xc2f/0x2180 drivers/base/core.c:3354
 usb_set_configuration+0x113a/0x1910 drivers/usb/core/message.c:2170
 usb_generic_driver_probe+0xba/0x100 drivers/usb/core/generic.c:238
 usb_probe_device+0xd9/0x2c0 drivers/usb/core/driver.c:293

Comment 1 Mauro Matteo Cascella 2024-07-30 15:51:59 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024072954-CVE-2024-41097-248c@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 15:52:19 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301687]

Comment 12 errata-xmlrpc 2024-09-24 00:39:49 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 13 errata-xmlrpc 2024-09-24 02:35:14 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.