CVE-2025-68342
Full vulnerability record from the local CVENow database.
Description
In the Linux kernel, the following vulnerability has been resolved: can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing data The URB received in gs_usb_receive_bulk_callback() contains a struct gs_host_frame. The length of the data after the header depends on the gs_host_frame hf::flags and the active device features (e.g. time stamping). Introduce a new function gs_usb_get_minimum_length() and check that we have at least received the required amount of data before accessing it. Only copy the data to that skb that has actually been received. [mkl: rename gs_usb_get_minimum_length() -> +gs_usb_get_minimum_rx_length()]
Severity
Not scored
CVSS score
Not available
Vulnerability status
Deferred
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2025-12-23 14:16:40.810000
Last modified
2026-10-30 13:18:21.553000
View original CVE JSON
{
"id": "CVE-2025-68342",
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"published": "2025-12-23T14:16:40.810",
"lastModified": "2026-10-30T13:18:21.553",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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()]"
},
{
"lang": "es",
"value": "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()']"
}
],
"affected": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"affectedData": [
{
"vendor": "Linux",
"product": "Linux",
"defaultStatus": "unaffected",
"programFiles": [
"drivers/net/can/usb/gs_usb.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"versions": [
{
"version": "d08e973a77d128b25e01a08c34d89593fdf222da",
"lessThan": "8376208db9283fbdfaa06c8d80735ac9954fa64a",
"versionType": "git",
"status": "affected"
},
{
"version": "d08e973a77d128b25e01a08c34d89593fdf222da",
"lessThan": "4ffac725154cf6a253f5e6aa0c8946232b6a0af5",
"versionType": "git",
"status": "affected"
},
{
"version": "d08e973a77d128b25e01a08c34d89593fdf222da",
"lessThan": "ad55004a3cb5b41ef78aa6c09e7bc5a489ba652b",
"versionType": "git",
"status": "affected"
},
{
"version": "d08e973a77d128b25e01a08c34d89593fdf222da",
"lessThan": "fb0c7c77a7ae3a2c3404b7d0173b8739a754b513",
"versionType": "git",
"status": "affected"
},
{
"version": "d08e973a77d128b25e01a08c34d89593fdf222da",
"lessThan": "395d988f93861101ec89d0dd9e3b876ae9392a5b",
"versionType": "git",
"status": "affected"
}
]
},
{
"vendor": "Linux",
"product": "Linux",
"defaultStatus": "affected",
"programFiles": [
"drivers/net/can/usb/gs_usb.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"versions": [
{
"version": "3.16",
"status": "affected"
},
{
"version": "0",
"lessThan": "3.16",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.1.191",
"lessThanOrEqual": "6.1.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.6.119",
"lessThanOrEqual": "6.6.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.12.61",
"lessThanOrEqual": "6.12.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.17.11",
"lessThanOrEqual": "6.17.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.18",
"lessThanOrEqual": "*",
"versionType": "original_commit_for_fix",
"status": "unaffected"
}
]
}
]
}
],
"metrics": {},
"references": [
{
"url": "https://git.kernel.org/stable/c/395d988f93861101ec89d0dd9e3b876ae9392a5b",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/4ffac725154cf6a253f5e6aa0c8946232b6a0af5",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/8376208db9283fbdfaa06c8d80735ac9954fa64a",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/ad55004a3cb5b41ef78aa6c09e7bc5a489ba652b",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/fb0c7c77a7ae3a2c3404b7d0173b8739a754b513",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
]
}