CVE-2025-68750

usb: potential integer overflow in usbg_make_tpg()

State
Published
Severity
Not scored
Published
Dec 24, 2025
Updated
May 11, 2026
Reserved
Dec 24, 2025

Read the record on cve.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").

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c52661d60f636d17e26ad834457db333bd1df494 to before 0861b9cb2ff519b7c5a3b1dd52a343e18c4efb24Affected
  • c52661d60f636d17e26ad834457db333bd1df494 to before 603a83e5fee38a950bfcfb2f36449311fa00a474Affected
  • c52661d60f636d17e26ad834457db333bd1df494 to before 6f77e344515b5258edb3988188311464209b1c7cAffected
  • c52661d60f636d17e26ad834457db333bd1df494 to before 6722e080b5b39ab7471386c73d0c1b39572f943cAffected
  • c52661d60f636d17e26ad834457db333bd1df494 to before a33f507f36d5881f602dab581ab0f8d22b49762cAffected
  • c52661d60f636d17e26ad834457db333bd1df494 to before 358d5ba08f1609c34a054aed88c431844d09705aAffected
  • c52661d60f636d17e26ad834457db333bd1df494 to before 620a5e1e84a3a7004270703a118d33eeb1c0f368Affected
  • c52661d60f636d17e26ad834457db333bd1df494 to before 153874010354d050f62f8ae25cbb960c17633dc5Affected
LinuxLinux
  • 3.5Affected
  • before 3.5Not affected
  • 5.4.296 through 5.4.*Not affected
  • 5.10.240 through 5.10.*Not affected
  • 5.15.187 through 5.15.*Not affected
  • 6.1.143 through 6.1.*Not affected
  • 6.6.96 through 6.6.*Not affected
  • 6.12.36 through 6.12.*Not affected
  • 6.15.5 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.