Bug 2424609 (CVE-2025-68342) - CVE-2025-68342 kernel: can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing data
Summary: CVE-2025-68342 kernel: can: gs_usb: gs_usb_receive_bulk_callback(): check act...
Keywords:
Status: NEW
Alias: CVE-2025-68342
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-12-23 15:02 UTC by OSIDB Bzimport
Modified: 2026-01-21 16:08 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:02 UTC
In the Linux kernel, the following vulnerability has been resolved:

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

The URB received in gs_usb_receive_bulk_callback() contains a struct
gs_host_frame. The length of the data after the header depends on the
gs_host_frame hf::flags and the active device features (e.g. time
stamping).

Introduce a new function gs_usb_get_minimum_length() and check that we have
at least received the required amount of data before accessing it. Only
copy the data to that skb that has actually been received.

[mkl: rename gs_usb_get_minimum_length() -> +gs_usb_get_minimum_rx_length()]


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