Not scored
usb: potential integer overflow in usbg_make_tpg()
- Severity
- Not scored
- Exploit likelihood
- 0.21% (higher than 11% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: usb: potential integer overflow in usbg_make_tpg() The variable tpgt in usbg_make_tpg() is defined as unsigned long and is assigned to tpgt->tport_tpgt, which is defined as u16. This may cause an integer overflow when tpgt is greater than USHRT_MAX (65535). I haven't tried to trigger it myself, but it is possible to trigger it by calling usbg_make_tpg() with a large value for tpgt. I modified the type of tpgt to match tpgt->tport_tpgt and adjusted the relevant code accordingly. This patch is similar to commit 59c816c1f24d ("vhost/scsi: potential memory corruption").
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from c52661d60f636d17e26ad834457db333bd1df494 before 0861b9cb2ff519b7c5a3b1dd52a343e18c4efb24, from c52661d60f636d17e26ad834457db333bd1df494 before 603a83e5fee38a950bfcfb2f36449311fa00a474, from c52661d60f636d17e26ad834457db333bd1df494 before 6f77e344515b5258edb3988188311464209b1c7c, from c52661d60f636d17e26ad834457db333bd1df494 before 6722e080b5b39ab7471386c73d0c1b39572f943c, from c52661d60f636d17e26ad834457db333bd1df494 before a33f507f36d5881f602dab581ab0f8d22b49762c, from c52661d60f636d17e26ad834457db333bd1df494 before 358d5ba08f1609c34a054aed88c431844d09705a, from c52661d60f636d17e26ad834457db333bd1df494 before 620a5e1e84a3a7004270703a118d33eeb1c0f368, from c52661d60f636d17e26ad834457db333bd1df494 before 153874010354d050f62f8ae25cbb960c17633dc5 and 1 more Not affected: before 3.5, from 5.4.296 up to 5.4.*, from 5.10.240 up to 5.10.*, from 5.15.187 up to 5.15.*, from 6.1.143 up to 6.1.*, from 6.6.96 up to 6.6.* | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: usb: potential integer overflow in usbg_make_tpg() The variable tpgt in usbg_make_tpg() is defined as unsigned long and is assigned to tpgt->tport_tpgt, which is defined as u16. This may cause an integer overflow when tpgt is greater than USHRT_MAX (65535). I haven't tried to trigger it myself, but it is possible to trigger it by calling usbg_make_tpg() with a large value for tpgt. I modified the type of tpgt to match tpgt->tport_tpgt and adjusted the relevant code accordingly. This patch is similar to commit 59c816c1f24d ("vhost/scsi: potential memory corruption").
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: usb: potencial desbordamiento de entero en usbg_make_tpg() La variable tpgt en usbg_make_tpg() está definida como unsigned long y se asigna a tpgt -> tport_tpgt, que está definida como u16. Esto puede causar un desbordamiento de entero cuando tpgt es mayor que USHRT_MAX (65535). No he intentado activarlo yo mismo, pero es posible activarlo llamando a usbg_make_tpg() con un valor grande para tpgt. Modifiqué el tipo de tpgt para que coincida con tpgt -> tport_tpgt y ajusté el código relevante en consecuencia. Este parche es similar al commit 59c816c1f24d ('vhost/scsi: potencial corrupción de memoria').
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68750 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-68750 changed 2026-10-13 | Public domain |