CVE-2025-68342

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

No CVSS score yet EPSS 0.21%

Published 23 Dec 2025 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2025-68342

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-68342 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.3% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from d08e973a77d128b25e01a08c34d89593fdf222da, before 8376208db9283fbdfaa06c8d80735ac9954fa64a
affected from d08e973a77d128b25e01a08c34d89593fdf222da, before 4ffac725154cf6a253f5e6aa0c8946232b6a0af5
affected from d08e973a77d128b25e01a08c34d89593fdf222da, before ad55004a3cb5b41ef78aa6c09e7bc5a489ba652b
affected from d08e973a77d128b25e01a08c34d89593fdf222da, before fb0c7c77a7ae3a2c3404b7d0173b8739a754b513
affected from d08e973a77d128b25e01a08c34d89593fdf222da, before 395d988f93861101ec89d0dd9e3b876ae9392a5b
Other versions: unaffected
Linux
affected 3.16
unaffected before 3.16
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.119 up to and including 6.6.*
unaffected from 6.12.61 up to and including 6.12.*
unaffected from 6.17.11 up to and including 6.17.*
unaffected 6.18 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-68342 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-68342

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-68342
trivy image --scanners vuln IMAGE | grep CVE-2025-68342

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-68342 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.