CVE-2026-98770

usb: gadget: midi2: Fix the jack descriptor array sizes

State
Published
Severity
Not scored
Published
Oct 18, 2026
Updated
Oct 21, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: midi2: Fix the jack descriptor array sizes

The jack in/out descriptor arrays in struct f_midi2_usb_config have the size of MAX_CABLES, which look reasonable -- but it turned out to be incorrect. Namely, the entries for those arrays are added from both inputs and outputs, hence for each loop cycle, it adds two, ended up with as twice as the expected size. This inconsistency may result in potential OOB when a large number of jacks are set up via configfs, although the max number of cables (the loop count) is limited to MAX_CABLES.

For addressing it, correct the jack_ins & jack_outs array sizes to twice, MAX_CABLES * 2.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 856fa444b0982746f95e801bab0e586533eb29a3 to before 18138d9f19cf6944ff09f5c8c0930545036fe3d0Affected
  • 856fa444b0982746f95e801bab0e586533eb29a3 to before 8294ff75a9de23f7cc641e5e5ca31fa6ea72a574Affected
  • 856fa444b0982746f95e801bab0e586533eb29a3 to before 87f2185423e01f113811301878f2f67eccec960dAffected
  • 856fa444b0982746f95e801bab0e586533eb29a3 to before 223c3bd02a582776d8ee47dae7b69d3258420694Affected
  • 856fa444b0982746f95e801bab0e586533eb29a3 to before 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1Affected
LinuxLinux
  • 6.6Affected
  • before 6.6Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.113 through 6.12.*Not affected
  • 6.18.56 through 6.18.*Not affected
  • 7.2.10 through 7.2.*Not affected
  • 7.3 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.