Bug 2424610 (CVE-2025-68343) - CVE-2025-68343 kernel: can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header
Summary: CVE-2025-68343 kernel: can: gs_usb: gs_usb_receive_bulk_callback(): check act...
Keywords:
Status: NEW
Alias: CVE-2025-68343
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-23 15:02 UTC by OSIDB Bzimport
Modified: 2025-12-23 16:31 UTC (History)
0 users

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-23 15:02:05 UTC
In the Linux kernel, the following vulnerability has been resolved:

can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header

The driver expects to receive a struct gs_host_frame in
gs_usb_receive_bulk_callback().

Use struct_group to describe the header of the struct gs_host_frame and
check that we have at least received the header before accessing any
members of it.

To resubmit the URB, do not dereference the pointer chain
"dev->parent->hf_size_rx" but use "parent->hf_size_rx" instead. Since
"urb->context" contains "parent", it is always defined, while "dev" is not
defined if the URB it too short.


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