usb: potential integer overflow in usbg_make_tpg()
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").
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.240, 5.15.187, 5.4.296, 6.1.143, 6.12.36, 6.15.5, 6.6.96
- CVEs
- CVE-2025-68750
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 03:21 UTC · Revision 1
Source evidence
usb: potential integer overflow in usbg_make_tpg()
core-osv · Original sourcePublished 24 Dec 2025, 15:51 UTC
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").
osv:CVE-2025-68750
Kernel
Fixed versions: 5.4.296, 5.10.240, 5.15.187, 6.1.143, 6.6.96, 6.12.36, 6.15.5
Complete source record
{
"id": "21fa125be5ebe269ed65b919a51e9a37551c7141832e63f992e7e1cf02c0e67f",
"url": "https://osv.dev/vulnerability/CVE-2025-68750",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "usb: potential integer overflow in usbg_make_tpg()",
"summary": "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\").",
"evidence": "osv:CVE-2025-68750",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.4.296",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.240",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.187",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.143",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.96",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.36",
"evidence": "/affected/1/ranges"
},
{
"value": "6.15.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-68750",
"aliases": [
"CVE-2025-68750"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "c52661d60f636d17e26ad834457db333bd1df494"
},
{
"fixed": "0861b9cb2ff519b7c5a3b1dd52a343e18c4efb24"
},
{
"fixed": "603a83e5fee38a950bfcfb2f36449311fa00a474"
},
{
"fixed": "6f77e344515b5258edb3988188311464209b1c7c"
},
{
"fixed": "6722e080b5b39ab7471386c73d0c1b39572f943c"
},
{
"fixed": "a33f507f36d5881f602dab581ab0f8d22b49762c"
},
{
"fixed": "358d5ba08f1609c34a054aed88c431844d09705a"
},
{
"fixed": "620a5e1e84a3a7004270703a118d33eeb1c0f368"
},
{
"fixed": "153874010354d050f62f8ae25cbb960c17633dc5"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68750.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.5.0"
},
{
"fixed": "5.4.296"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.240"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.187"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.143"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.96"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.36"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.15.5"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68750.json"
}
}
],
"modified": "2026-10-28T02:30:49.634671837Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0861b9cb2ff519b7c5a3b1dd52a343e18c4efb24",
"https://git.kernel.org/stable/c/153874010354d050f62f8ae25cbb960c17633dc5",
"https://git.kernel.org/stable/c/358d5ba08f1609c34a054aed88c431844d09705a",
"https://git.kernel.org/stable/c/603a83e5fee38a950bfcfb2f36449311fa00a474",
"https://git.kernel.org/stable/c/620a5e1e84a3a7004270703a118d33eeb1c0f368",
"https://git.kernel.org/stable/c/6722e080b5b39ab7471386c73d0c1b39572f943c",
"https://git.kernel.org/stable/c/6f77e344515b5258edb3988188311464209b1c7c",
"https://git.kernel.org/stable/c/a33f507f36d5881f602dab581ab0f8d22b49762c",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68750.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-68750",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68750.json"
}
},
"related_cves": [
{
"value": "CVE-2025-68750",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 517710,
"published_at": "2025-12-24T15:51:03.141+00:00"
}