CVE-2025-68343

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

State
Published
Severity
Not scored
Published
Dec 23, 2025
Updated
May 11, 2026
Reserved
Dec 16, 2025

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • d08e973a77d128b25e01a08c34d89593fdf222da to before 18cbce43363c9f84b90a92d57df341155eee0697Affected
  • d08e973a77d128b25e01a08c34d89593fdf222da to before 3433680b759646efcacc64fe36aa2e51ae34b8f0Affected
  • d08e973a77d128b25e01a08c34d89593fdf222da to before 616eee3e895b8ca0028163fcb1dce5e3e9dea322Affected
  • d08e973a77d128b25e01a08c34d89593fdf222da to before f31693dc3a584c0ad3937e857b59dbc1a7ed2b87Affected
  • d08e973a77d128b25e01a08c34d89593fdf222da to before 6fe9f3279f7d2518439a7962c5870c6e9ecbadcfAffected
LinuxLinux
  • 3.16Affected
  • before 3.16Not affected
  • 6.1.159 through 6.1.*Not affected
  • 6.6.119 through 6.6.*Not affected
  • 6.12.61 through 6.12.*Not affected
  • 6.17.11 through 6.17.*Not affected
  • 6.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.