CVE-2025-68343

Source
https://cve.org/CVERecord?id=CVE-2025-68343
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68343.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-68343
Downstream
Related
Published
2025-12-23T13:58:28.411Z
Modified
2026-03-23T05:12:47.599662568Z
Summary
can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header
Details

In the Linux kernel, the following vulnerability has been resolved:

can: gsusb: gsusbreceivebulkcallback(): check actuallength before accessing header

The driver expects to receive a struct gshostframe in gsusbreceivebulkcallback().

Use structgroup to describe the header of the struct gshost_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->hfsizerx" but use "parent->hfsizerx" instead. Since "urb->context" contains "parent", it is always defined, while "dev" is not defined if the URB it too short.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68343.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d08e973a77d128b25e01a08c34d89593fdf222da
Fixed
18cbce43363c9f84b90a92d57df341155eee0697
Fixed
3433680b759646efcacc64fe36aa2e51ae34b8f0
Fixed
616eee3e895b8ca0028163fcb1dce5e3e9dea322
Fixed
f31693dc3a584c0ad3937e857b59dbc1a7ed2b87
Fixed
6fe9f3279f7d2518439a7962c5870c6e9ecbadcf

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68343.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.16.0
Fixed
6.1.159
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.119
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.61
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.11

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68343.json"