{"id":"CVE-2021-47267","aliases":["CVE-2021-47267"],"related":[],"kind":"vulnerability","state":"published","title":"usb: fix various gadget panics on 10gbps cabling","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: fix various gadget panics on 10gbps cabling\n\nusb_assign_descriptors() is called with 5 parameters,\nthe last 4 of which are the usb_descriptor_header for:\n  full-speed (USB1.1 - 12Mbps [including USB1.0 low-speed @ 1.5Mbps),\n  high-speed (USB2.0 - 480Mbps),\n  super-speed (USB3.0 - 5Gbps),\n  super-speed-plus (USB3.1 - 10Gbps).\n\nThe differences between full/high/super-speed descriptors are usually\nsubstantial (due to changes in the maximum usb block size from 64 to 512\nto 1024 bytes and other differences in the specs), while the difference\nbetween 5 and 10Gbps descriptors may be as little as nothing\n(in many cases the same tuning is simply good enough).\n\nHowever if a gadget driver calls usb_assign_descriptors() with\na NULL descriptor for super-speed-plus and is then used on a max 10gbps\nconfiguration, the kernel will crash with a null pointer dereference,\nwhen a 10gbps capable device port + cable + host port combination shows up.\n(This wouldn't happen if the gadget max-speed was set to 5gbps, but\nit of course defaults to the maximum, and there's no real reason to\nartificially limit it)\n\nThe fix is to simply use the 5gbps descriptor as the 10gbps descriptor,\nif a 10gbps descriptor wasn't provided.\n\nObviously this won't fix the problem if the 5gbps descriptor is also\nNULL, but such cases can't be so trivially solved (and any such gadgets\nare unlikely to be used with USB3 ports any way).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: fix various gadget panics on 10gbps cabling\n\nusb_assign_descriptors() is called with 5 parameters,\nthe last 4 of which are the usb_descriptor_header for:\n  full-speed (USB1.1 - 12Mbps [including USB1.0 low-speed @ 1.5Mbps),\n  high-speed (USB2.0 - 480Mbps),\n  super-speed (USB3.0 - 5Gbps),\n  super-speed-plus (USB3.1 - 10Gbps).\n\nThe differences between full/high/super-speed descriptors are usually\nsubstantial (due to changes in the maximum usb block size from 64 to 512\nto 1024 bytes and other differences in the specs), while the difference\nbetween 5 and 10Gbps descriptors may be as little as nothing\n(in many cases the same tuning is simply good enough).\n\nHowever if a gadget driver calls usb_assign_descriptors() with\na NULL descriptor for super-speed-plus and is then used on a max 10gbps\nconfiguration, the kernel will crash with a null pointer dereference,\nwhen a 10gbps capable device port + cable + host port combination shows up.\n(This wouldn't happen if the gadget max-speed was set to 5gbps, but\nit of course defaults to the maximum, and there's no real reason to\nartificially limit it)\n\nThe fix is to simply use the 5gbps descriptor as the 10gbps descriptor,\nif a 10gbps descriptor wasn't provided.\n\nObviously this won't fix the problem if the 5gbps descriptor is also\nNULL, but such cases can't be so trivially solved (and any such gadgets\nare unlikely to be used with USB3 ports any way).","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: corrige varios fallos de dispositivos en cableado de 10 gbps usb_assign_descriptors() se llama con 5 parámetros, los últimos 4 de los cuales son usb_descriptor_header para: velocidad completa (USB1.1 - 12Mbps [ incluyendo USB1.0 de baja velocidad a 1,5 Mbps), alta velocidad (USB2.0 - 480 Mbps), súper velocidad (USB3.0 - 5 Gbps), súper velocidad plus (USB3.1 - 10 Gbps). Las diferencias entre los descriptores de velocidad completa/alta/supervelocidad suelen ser sustanciales (debido a cambios en el tamaño máximo del bloque USB de 64 a 512 a 1024 bytes y otras diferencias en las especificaciones), mientras que la diferencia entre los descriptores de 5 y 10 Gbps puede ser tan casi nada (en muchos casos, la misma afinación es simplemente suficiente). Sin embargo, si un controlador de dispositivo llama a usb_assign_descriptors() con un descriptor NULL para super-speed-plus y luego se usa en una configuración máxima de 10 gbps, el kernel fallará con una desreferencia de puntero null, cuando un puerto de dispositivo con capacidad de 10 gbps + cable + puerto de host Aparece la combinación. (Esto no sucedería si la velocidad máxima del dispositivo estuviera configurada en 5 gbps, pero, por supuesto, está predeterminada al máximo y no hay ninguna razón real para limitarla artificialmente). La solución es simplemente usar el descriptor de 5 gbps como el descriptor de 10 gbps, si no se proporcionó un descriptor de 10 gbps. Obviamente, esto no solucionará el problema si el descriptor de 5 gbps también es NULL, pero estos casos no se pueden resolver de manera tan trivial (y es poco probable que dichos dispositivos se utilicen con puertos USB3 de alguna manera).","source":"nvd"}],"published":"2024-05-21T14:19:57.894Z","modified":"2026-06-17T04:17:03.307Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"10287baec761d33f0a82d84b46e37a44030350d8","fixed":"fd24be23abf3e94260be0f00bb42c7e91d495f87","status":"affected"},{"type":"git","introduced":"10287baec761d33f0a82d84b46e37a44030350d8","fixed":"70cd19cb5bd94bbb5bacfc9c1e4ee0071699a604","status":"affected"},{"type":"git","introduced":"10287baec761d33f0a82d84b46e37a44030350d8","fixed":"45f9a2fe737dc0a5df270787f2231aee8985cd59","status":"affected"},{"type":"git","introduced":"10287baec761d33f0a82d84b46e37a44030350d8","fixed":"5ef23506695b01d5d56a13a092a97f2478069d75","status":"affected"},{"type":"git","introduced":"10287baec761d33f0a82d84b46e37a44030350d8","fixed":"b972eff874637402ddc4a7dd11fb22538a0b6d28","status":"affected"},{"type":"git","introduced":"10287baec761d33f0a82d84b46e37a44030350d8","fixed":"ca6bc277430d90375452b60b047763a090b7673e","status":"affected"},{"type":"git","introduced":"10287baec761d33f0a82d84b46e37a44030350d8","fixed":"032e288097a553db5653af552dd8035cd2a0ba96","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.8","status":"unaffected"},{"type":"semver","introduced":"4.9.273","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.237","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.195","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.126","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.44","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.12.11","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.9.273"},{"status":"affected","introduced":"4.10","fixed":"4.14.237"},{"status":"affected","introduced":"4.15","fixed":"4.19.195"},{"status":"affected","introduced":"4.20","fixed":"5.4.126"},{"status":"affected","introduced":"5.5","fixed":"5.10.44"},{"status":"affected","introduced":"5.11","fixed":"5.12.11"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/fd24be23abf3e94260be0f00bb42c7e91d495f87","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/70cd19cb5bd94bbb5bacfc9c1e4ee0071699a604","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/45f9a2fe737dc0a5df270787f2231aee8985cd59","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ef23506695b01d5d56a13a092a97f2478069d75","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b972eff874637402ddc4a7dd11fb22538a0b6d28","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ca6bc277430d90375452b60b047763a090b7673e","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/032e288097a553db5653af552dd8035cd2a0ba96","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-21T18:49:52.112Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47267","url":"https://www.cve.org/CVERecord?id=CVE-2021-47267","licence":"CVE Terms of Use","modified":"2026-05-11T13:51:12.204Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47267","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47267","licence":"Public domain","modified":"2026-06-17T04:17:03.307Z"}],"updatedAt":"2026-11-25T22:58:08.765Z","epss":{"score":0.00684,"percentile":0.53824,"date":"2026-12-01T12:00:22.000Z"}}