Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header The driver expects to receive a struct gs_host_frame in gs_usb_receive_bulk_callback(). Use struct_group to describe the header of the struct gs_host_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->hf_size_rx" but use "parent->hf_size_rx" instead. Since "urb->context" contains "parent", it is always defined, while "dev" is not defined if the URB it too short.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.159, 6.12.61, 6.17.11, 6.6.119
CVEs
CVE-2025-68343
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 10:20 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 23 Dec 2025, 13:58 UTC

In the Linux kernel, the following vulnerability has been resolved: can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header The driver expects to receive a struct gs_host_frame in gs_usb_receive_bulk_callback(). Use struct_group to describe the header of the struct gs_host_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->hf_size_rx" but use "parent->hf_size_rx" instead. Since "urb->context" contains "parent", it is always defined, while "dev" is not defined if the URB it too short.

osv:CVE-2025-68343

Kernel

Fixed versions: 6.1.159, 6.6.119, 6.12.61, 6.17.11

Complete source record
{
  "id": "5873db1da6a657a0e4c91bdfda49c71d3cc333ab89b32d4f7b1f02ed08f5fa99",
  "url": "https://osv.dev/vulnerability/CVE-2025-68343",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header The driver expects to receive a struct gs_host_frame in gs_usb_receive_bulk_callback(). Use struct_group to describe the header of the struct gs_host_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->hf_size_rx\" but use \"parent->hf_size_rx\" instead. Since \"urb->context\" contains \"parent\", it is always defined, while \"dev\" is not defined if the URB it too short.",
    "evidence": "osv:CVE-2025-68343",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.159",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.119",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.61",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.17.11",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-68343",
      "aliases": [
        "CVE-2025-68343"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "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"
          }
        },
        {
          "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"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68343.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:43.771076699Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/18cbce43363c9f84b90a92d57df341155eee0697",
        "https://git.kernel.org/stable/c/3433680b759646efcacc64fe36aa2e51ae34b8f0",
        "https://git.kernel.org/stable/c/616eee3e895b8ca0028163fcb1dce5e3e9dea322",
        "https://git.kernel.org/stable/c/6fe9f3279f7d2518439a7962c5870c6e9ecbadcf",
        "https://git.kernel.org/stable/c/f31693dc3a584c0ad3937e857b59dbc1a7ed2b87",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68343.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-68343",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68343.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-68343",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 511610,
  "published_at": "2025-12-23T13:58:28.411+00:00"
}