CVE-2025-68750
Unknown Unknown - Not Provided
Integer Overflow in Linux Kernel USB Gadget Target Port Handling

Publication date: 2025-12-24

Last updated on: 2025-12-24

Assigner: kernel.org

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").
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-24
Last Modified
2025-12-24
Generated
2026-05-09
AI Q&A
2025-12-24
EPSS Evaluated
2026-05-08
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is an integer overflow in the Linux kernel function usbg_make_tpg(). Specifically, a variable tpgt defined as unsigned long is assigned to a 16-bit unsigned integer field tport_tpgt. If tpgt is larger than 65535 (the maximum value for a 16-bit unsigned integer), this can cause an integer overflow, potentially leading to unexpected behavior or memory corruption.


How can this vulnerability impact me? :

The integer overflow could lead to memory corruption or other unintended behavior in the Linux kernel's USB subsystem. This may result in system instability, crashes, or potential security risks such as privilege escalation or denial of service, depending on how the overflow is exploited.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart