# CVE-2025-68342: can: gs\_usb: gs\_usb\_receive\_bulk\_callback(): check actual\_length before accessing data

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-23T13:58:27.579Z
- **Modified:** 2026-10-30T13:18:21.553Z

## Who should check

- Anyone running Linux \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< 8376208db9283fbdfaa06c8d80735ac9954fa64a; \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< 4ffac725154cf6a253f5e6aa0c8946232b6a0af5; \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< ad55004a3cb5b41ef78aa6c09e7bc5a489ba652b; \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< fb0c7c77a7ae3a2c3404b7d0173b8739a754b513; \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< 395d988f93861101ec89d0dd9e3b876ae9392a5b
- Anyone running Linux 3.16

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

## Affected and fixed versions

- Linux: \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< 8376208db9283fbdfaa06c8d80735ac9954fa64a; \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< 4ffac725154cf6a253f5e6aa0c8946232b6a0af5; \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< ad55004a3cb5b41ef78aa6c09e7bc5a489ba652b; \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< fb0c7c77a7ae3a2c3404b7d0173b8739a754b513; \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< 395d988f93861101ec89d0dd9e3b876ae9392a5b (cvelist)
- Linux: 3.16 (cvelist)

## Mitigation

- Upgrade Linux to 395d988f93861101ec89d0dd9e3b876ae9392a5b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-68342. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68342.md
Affected: Linux >= d08e973a77d128b25e01a08c34d89593fdf222da, < 8376208db9283fbdfaa06c8d80735ac9954fa64a; >= d08e973a77d128b25e01a08c34d89593fdf222da, < 4ffac725154cf6a253f5e6aa0c8946232b6a0af5; >= d08e973a77d128b25e01a08c34d89593fdf222da, < ad55004a3cb5b41ef78aa6c09e7bc5a489ba652b; >= d08e973a77d128b25e01a08…
Fixed in: Linux 8376208db9283fbdfaa06c8d80735ac9954fa64a, Linux 4ffac725154cf6a253f5e6aa0c8946232b6a0af5, Linux 395d988f93861101ec89d0dd9e3b876ae9392a5b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-68342 being exploited?

There is no confirmed exploitation: CVE-2025-68342 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-68342?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-68342?

Linux \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< 8376208db9283fbdfaa06c8d80735ac9954fa64a; \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< 4ffac725154cf6a253f5e6aa0c8946232b6a0af5; \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< ad55004a3cb5b41ef78aa6c09e7bc5a489ba652b; \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< fb0c7c77a7ae3a2c3404b7d0173b8739a754b513; \>= d08e973a77d128b25e01a08c34d89593fdf222da, \< 395d988f93861101ec89d0dd9e3b876ae9392a5b; Linux 3.16.

### Is there a fix for CVE-2025-68342?

Yes. Fixed in Linux 8376208db9283fbdfaa06c8d80735ac9954fa64a, Linux 4ffac725154cf6a253f5e6aa0c8946232b6a0af5, Linux 395d988f93861101ec89d0dd9e3b876ae9392a5b. Upgrade Linux to 395d988f93861101ec89d0dd9e3b876ae9392a5b or later.

### How do I check if I'm affected by CVE-2025-68342?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-68342>

HTML: <https://flawdb.com/CVE-2025-68342> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-68342>
