CVE-2026-98770
usb: gadget: midi2: Fix the jack descriptor array sizes
Mitigation
- Upgrade Linux to 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1 or later.
Who should check
- Anyone running Linux >= 856fa444b0982746f95e801bab0e586533eb29a3, < 18138d9f19cf6944ff09f5c8c0930545036fe3d0; >= 856fa444b0982746f95e801bab0e586533eb29a3, < 8294ff75a9de23f7cc641e5e5ca31fa6ea72a574; >= 856fa444b0982746f95e801bab0e586533eb29a3, < 87f2185423e01f113811301878f2f67eccec960d; >= 856fa444b0982746f95e801bab0e586533eb29a3, < 223c3bd02a582776d8ee47dae7b69d3258420694; >= 856fa444b0982746f95e801bab0e586533eb29a3, < 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1
- Anyone running Linux 6.6
Vulnerability facts
- Affected
- Linux >= 856fa444b0982746f95e801bab0e586533eb29a3, < 18138d9f19cf6944ff09f5c8c0930545036fe3d0; >= 856fa444b0982746f95e801bab0e586533eb29a3, < 8294ff75a9de23f7cc641e5e5ca31fa6ea72a574; >= 856fa444b0982746f95e801bab0e586533eb29a3, < 87f2185423e01f113811301878f2f67eccec960d; >= 856fa444b0982746f95e801bab0e586533eb29a3, < 223c3bd02a582776d8ee47dae7b69d3258420694; >= 856fa444b0982746f95e801bab0e586533eb29a3, < 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1; Linux 6.6
- Fixed in
- Linux 18138d9f19cf6944ff09f5c8c0930545036fe3d0, Linux 8294ff75a9de23f7cc641e5e5ca31fa6ea72a574, Linux 87f2185423e01f113811301878f2f67eccec960d, Linux 223c3bd02a582776d8ee47dae7b69d3258420694, Linux 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.21% chance of exploitation in 30 days (percentile 6, 2026-11-26)
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 856fa444b0982746f95e801bab0e586533eb29a3, < 18138d9f19cf6944ff09f5c8c0930545036fe3d0; >= 856fa444b0982746f95e801bab0e586533eb29a3, < 8294ff75a9de23f7cc641e5e5ca31fa6ea72a574; >= 856fa444b0982746f95e801bab0e586533eb29a3, < 87f2185423e01f113811301878f2f67eccec960d; >= 856fa444b0982746f95e801bab0e586533eb29a3, < 223c3bd02a582776d8ee47dae7b69d3258420694; >= 856fa444b0982746f95e801bab0e586533eb29a3, < 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1 | — | cvelist |
| Linux | 6.6 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Other
- https://git.kernel.org/stable/c/18138d9f19cf6944ff09f5c8c0930545036fe3d0
- https://git.kernel.org/stable/c/8294ff75a9de23f7cc641e5e5ca31fa6ea72a574
- https://git.kernel.org/stable/c/87f2185423e01f113811301878f2f67eccec960d
- https://git.kernel.org/stable/c/223c3bd02a582776d8ee47dae7b69d3258420694
- https://git.kernel.org/stable/c/310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1
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.