{"id":"CVE-2025-68342","aliases":["CVE-2025-68342"],"related":[],"kind":"vulnerability","state":"published","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_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()]","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 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()]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:\n\ncan: gs_usb: gs_usb_receive_bulk_callback(): comprobar actual_length antes de acceder a los datos\n\nEl URB recibido en 'gs_usb_receive_bulk_callback()' contiene una estructura 'gs_host_frame'. La longitud de los datos después de la cabecera depende de los 'hf::flags' de 'gs_host_frame' y de las características activas del dispositivo (por ejemplo, el sellado de tiempo).\n\nSe introduce una nueva función 'gs_usb_get_minimum_length()' y se comprueba que se ha recibido al menos la cantidad de datos requerida antes de acceder a ellos. Solo se copian al 'skb' los datos que realmente se han recibido.\n\n[mkl: se renombra 'gs_usb_get_minimum_length()' a '+gs_usb_get_minimum_rx_length()']","source":"nvd"}],"published":"2025-12-23T13:58:27.579Z","modified":"2026-10-30T13:18:21.553Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d08e973a77d128b25e01a08c34d89593fdf222da","fixed":"8376208db9283fbdfaa06c8d80735ac9954fa64a","status":"affected"},{"type":"git","introduced":"d08e973a77d128b25e01a08c34d89593fdf222da","fixed":"4ffac725154cf6a253f5e6aa0c8946232b6a0af5","status":"affected"},{"type":"git","introduced":"d08e973a77d128b25e01a08c34d89593fdf222da","fixed":"ad55004a3cb5b41ef78aa6c09e7bc5a489ba652b","status":"affected"},{"type":"git","introduced":"d08e973a77d128b25e01a08c34d89593fdf222da","fixed":"fb0c7c77a7ae3a2c3404b7d0173b8739a754b513","status":"affected"},{"type":"git","introduced":"d08e973a77d128b25e01a08c34d89593fdf222da","fixed":"395d988f93861101ec89d0dd9e3b876ae9392a5b","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.191","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/8376208db9283fbdfaa06c8d80735ac9954fa64a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4ffac725154cf6a253f5e6aa0c8946232b6a0af5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ad55004a3cb5b41ef78aa6c09e7bc5a489ba652b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fb0c7c77a7ae3a2c3404b7d0173b8739a754b513","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/395d988f93861101ec89d0dd9e3b876ae9392a5b","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68342","url":"https://www.cve.org/CVERecord?id=CVE-2025-68342","licence":"CVE Terms of Use","modified":"2026-10-30T12:23:14.781Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68342","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68342","licence":"Public domain","modified":"2026-10-30T13:18:21.553Z"}],"updatedAt":"2026-11-25T22:59:09.814Z","epss":{"score":0.00207,"percentile":0.11351,"date":"2026-12-02T12:00:21.000Z"}}