# CVE-2025-68342: can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing data

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-02)
- Published: 2025-12-23T13:58:27.579Z
- Modified: 2026-10-30T13:18:21.553Z
- Assigned by: Linux

## Description

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()]

(As written by CVE List.)

## Affected

- Linux Linux: from d08e973a77d128b25e01a08c34d89593fdf222da before 8376208db9283fbdfaa06c8d80735ac9954fa64a; from d08e973a77d128b25e01a08c34d89593fdf222da before 4ffac725154cf6a253f5e6aa0c8946232b6a0af5; from d08e973a77d128b25e01a08c34d89593fdf222da before ad55004a3cb5b41ef78aa6c09e7bc5a489ba652b; from d08e973a77d128b25e01a08c34d89593fdf222da before fb0c7c77a7ae3a2c3404b7d0173b8739a754b513; from d08e973a77d128b25e01a08c34d89593fdf222da before 395d988f93861101ec89d0dd9e3b876ae9392a5b; 3.16 (not affected: before 3.16; from 6.1.191 up to 6.1.*; from 6.6.119 up to 6.6.*; from 6.12.61 up to 6.12.*; from 6.17.11 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/8376208db9283fbdfaa06c8d80735ac9954fa64a>
- <https://git.kernel.org/stable/c/4ffac725154cf6a253f5e6aa0c8946232b6a0af5>
- <https://git.kernel.org/stable/c/ad55004a3cb5b41ef78aa6c09e7bc5a489ba652b>
- <https://git.kernel.org/stable/c/fb0c7c77a7ae3a2c3404b7d0173b8739a754b513>
- <https://git.kernel.org/stable/c/395d988f93861101ec89d0dd9e3b876ae9392a5b>

## Sources

- CVE List: [CVE-2025-68342](https://www.cve.org/CVERecord?id=CVE-2025-68342), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2025-68342](https://nvd.nist.gov/vuln/detail/CVE-2025-68342), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2025-68342 · Whole record: https://cve.day/CVE-2025-68342.json · Rebuilt by cve.day 2026-11-25T22:59:09.814Z
