{"id":"CVE-2025-68343","aliases":["CVE-2025-68343"],"related":[],"kind":"vulnerability","state":"published","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:\n\ncan: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header\n\nThe driver expects to receive a struct gs_host_frame in\ngs_usb_receive_bulk_callback().\n\nUse struct_group to describe the header of the struct gs_host_frame and\ncheck that we have at least received the header before accessing any\nmembers of it.\n\nTo resubmit the URB, do not dereference the pointer chain\n\"dev->parent->hf_size_rx\" but use \"parent->hf_size_rx\" instead. Since\n\"urb->context\" contains \"parent\", it is always defined, while \"dev\" is not\ndefined if the URB it too short.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header\n\nThe driver expects to receive a struct gs_host_frame in\ngs_usb_receive_bulk_callback().\n\nUse struct_group to describe the header of the struct gs_host_frame and\ncheck that we have at least received the header before accessing any\nmembers of it.\n\nTo resubmit the URB, do not dereference the pointer chain\n\"dev->parent->hf_size_rx\" but use \"parent->hf_size_rx\" instead. Since\n\"urb->context\" contains \"parent\", it is always defined, while \"dev\" is not\ndefined if the URB it too short.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha corregido la siguiente vulnerabilidad:\\n\\ncan: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header\\n\\nEl controlador espera recibir una struct gs_host_frame en gs_usb_receive_bulk_callback().\\n\\nUtilizar struct_group para describir la cabecera de la struct gs_host_frame y comprobar que se ha recibido al menos la cabecera antes de acceder a cualquiera de sus miembros.\\n\\nPara volver a enviar el URB, no desreferenciar la cadena de punteros \\“dev -> parent -> hf_size_rx\\” sino usar \\“parent -> hf_size_rx\\” en su lugar. Dado que \\“urb -> context\\” contiene \\“parent\\”, siempre está definido, mientras que \\“dev\\” no está definido si el URB es demasiado corto.","source":"nvd"}],"published":"2025-12-23T13:58:28.411Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d08e973a77d128b25e01a08c34d89593fdf222da","fixed":"18cbce43363c9f84b90a92d57df341155eee0697","status":"affected"},{"type":"git","introduced":"d08e973a77d128b25e01a08c34d89593fdf222da","fixed":"3433680b759646efcacc64fe36aa2e51ae34b8f0","status":"affected"},{"type":"git","introduced":"d08e973a77d128b25e01a08c34d89593fdf222da","fixed":"616eee3e895b8ca0028163fcb1dce5e3e9dea322","status":"affected"},{"type":"git","introduced":"d08e973a77d128b25e01a08c34d89593fdf222da","fixed":"f31693dc3a584c0ad3937e857b59dbc1a7ed2b87","status":"affected"},{"type":"git","introduced":"d08e973a77d128b25e01a08c34d89593fdf222da","fixed":"6fe9f3279f7d2518439a7962c5870c6e9ecbadcf","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.16","status":"unaffected"},{"type":"semver","introduced":"6.1.159","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.119","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.61","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.11","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/18cbce43363c9f84b90a92d57df341155eee0697","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3433680b759646efcacc64fe36aa2e51ae34b8f0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/616eee3e895b8ca0028163fcb1dce5e3e9dea322","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f31693dc3a584c0ad3937e857b59dbc1a7ed2b87","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6fe9f3279f7d2518439a7962c5870c6e9ecbadcf","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68343","url":"https://www.cve.org/CVERecord?id=CVE-2025-68343","licence":"CVE Terms of Use","modified":"2026-05-11T21:51:21.788Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68343","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68343","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:09.814Z","epss":{"score":0.00199,"percentile":0.10244,"date":"2026-12-01T12:00:22.000Z"}}