{"id":"CVE-2025-68342","title":"can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing data","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing data\n\nThe URB received in gs_usb_receive_bulk_callback() contains a struct\ngs_host_fra…","severity":"none","vendor":"Linux","product":"Linux","affected":["Linux >= d08e973a77d128b25e01a08c34d89593fdf222da < 8376208db9283fbdfaa06c8d80735ac9954fa64a","Linux >= d08e973a77d128b25e01a08c34d89593fdf222da < 4ffac725154cf6a253f5e6aa0c8946232b6a0af5","Linux >= d08e973a77d128b25e01a08c34d89593fdf222da < ad55004a3cb5b41ef78aa6c09e7bc5a489ba652b","Linux >= d08e973a77d128b25e01a08c34d89593fdf222da < fb0c7c77a7ae3a2c3404b7d0173b8739a754b513","Linux >= d08e973a77d128b25e01a08c34d89593fdf222da < 395d988f93861101ec89d0dd9e3b876ae9392a5b","Linux 3.16"],"published":"2025-12-23","updated":"2026-10-30","sourceUpdated":"2026-10-30T12:23:14.781Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-68342","references":[{"url":"https://git.kernel.org/stable/c/8376208db9283fbdfaa06c8d80735ac9954fa64a"},{"url":"https://git.kernel.org/stable/c/4ffac725154cf6a253f5e6aa0c8946232b6a0af5"},{"url":"https://git.kernel.org/stable/c/ad55004a3cb5b41ef78aa6c09e7bc5a489ba652b"},{"url":"https://git.kernel.org/stable/c/fb0c7c77a7ae3a2c3404b7d0173b8739a754b513"},{"url":"https://git.kernel.org/stable/c/395d988f93861101ec89d0dd9e3b876ae9392a5b"}],"tags":["cve.org"],"epss":0.00186,"epssPercentile":0.08225,"ingestedAt":"2026-11-05T15:02:32.158Z","slug":"CVE-2025-68342","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\ncan: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing data\n\nThe URB received in gs_usb_receive_bulk_callback() contains a struct\ngs_host_frame. The length of the data after the header depends on the\ngs_host_frame hf::flags and the active device features (e.g. time\nstamping).\n\nIntroduce a new function gs_usb_get_minimum_length() and check that we have\nat least received the required amount of data before accessing it. Only\ncopy the data to that skb that has actually been received.\n\n[mkl: rename gs_usb_get_minimum_length() -> +gs_usb_get_minimum_rx_length()]\n\n## Affected\n\n- `Linux >= d08e973a77d128b25e01a08c34d89593fdf222da < 8376208db9283fbdfaa06c8d80735ac9954fa64a`\n- `Linux >= d08e973a77d128b25e01a08c34d89593fdf222da < 4ffac725154cf6a253f5e6aa0c8946232b6a0af5`\n- `Linux >= d08e973a77d128b25e01a08c34d89593fdf222da < ad55004a3cb5b41ef78aa6c09e7bc5a489ba652b`\n- `Linux >= d08e973a77d128b25e01a08c34d89593fdf222da < fb0c7c77a7ae3a2c3404b7d0173b8739a754b513`\n- `Linux >= d08e973a77d128b25e01a08c34d89593fdf222da < 395d988f93861101ec89d0dd9e3b876ae9392a5b`\n- `Linux 3.16`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}