# CVE-2026-98770: usb: gadget: midi2: Fix the jack descriptor array sizes

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-18T15:48:06.586Z
- **Modified:** 2026-10-21T13:21:45.227Z

## Who should check

- Anyone running Linux \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 18138d9f19cf6944ff09f5c8c0930545036fe3d0; \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 8294ff75a9de23f7cc641e5e5ca31fa6ea72a574; \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 87f2185423e01f113811301878f2f67eccec960d; \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 223c3bd02a582776d8ee47dae7b69d3258420694; \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1
- Anyone running Linux 6.6

## 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.

## Affected and fixed versions

- Linux: \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 18138d9f19cf6944ff09f5c8c0930545036fe3d0; \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 8294ff75a9de23f7cc641e5e5ca31fa6ea72a574; \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 87f2185423e01f113811301878f2f67eccec960d; \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 223c3bd02a582776d8ee47dae7b69d3258420694; \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1 (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- Upgrade Linux to 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98770. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98770.md
Affected: Linux >= 856fa444b0982746f95e801bab0e586533eb29a3, < 18138d9f19cf6944ff09f5c8c0930545036fe3d0; >= 856fa444b0982746f95e801bab0e586533eb29a3, < 8294ff75a9de23f7cc641e5e5ca31fa6ea72a574; >= 856fa444b0982746f95e801bab0e586533eb29a3, < 87f2185423e01f113811301878f2f67eccec960d; >= 856fa444b0982746f95e801…
Fixed in: Linux 18138d9f19cf6944ff09f5c8c0930545036fe3d0, Linux 8294ff75a9de23f7cc641e5e5ca31fa6ea72a574, Linux 87f2185423e01f113811301878f2f67eccec960d, Linux 223c3bd02a582776d8ee47dae7b69d3258420694, Linux 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98770 being exploited?

There is no confirmed exploitation: CVE-2026-98770 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98770?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98770?

Linux \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 18138d9f19cf6944ff09f5c8c0930545036fe3d0; \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 8294ff75a9de23f7cc641e5e5ca31fa6ea72a574; \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 87f2185423e01f113811301878f2f67eccec960d; \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 223c3bd02a582776d8ee47dae7b69d3258420694; \>= 856fa444b0982746f95e801bab0e586533eb29a3, \< 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1; Linux 6.6.

### Is there a fix for CVE-2026-98770?

Yes. Fixed in Linux 18138d9f19cf6944ff09f5c8c0930545036fe3d0, Linux 8294ff75a9de23f7cc641e5e5ca31fa6ea72a574, Linux 87f2185423e01f113811301878f2f67eccec960d, Linux 223c3bd02a582776d8ee47dae7b69d3258420694, Linux 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1. Upgrade Linux to 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1 or later.

### How do I check if I'm affected by CVE-2026-98770?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/18138d9f19cf6944ff09f5c8c0930545036fe3d0>
- other: <https://git.kernel.org/stable/c/8294ff75a9de23f7cc641e5e5ca31fa6ea72a574>
- other: <https://git.kernel.org/stable/c/87f2185423e01f113811301878f2f67eccec960d>
- other: <https://git.kernel.org/stable/c/223c3bd02a582776d8ee47dae7b69d3258420694>
- other: <https://git.kernel.org/stable/c/310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98770>

HTML: <https://flawdb.com/CVE-2026-98770> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98770>
