CVE-2026-98770
usb: gadget: midi2: Fix the jack descriptor array sizes
Check your servers for CVE-2026-98770
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98770 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.24% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 856fa444b0982746f95e801bab0e586533eb29a3, before 18138d9f19cf6944ff09f5c8c0930545036fe3d0 affected from 856fa444b0982746f95e801bab0e586533eb29a3, before 8294ff75a9de23f7cc641e5e5ca31fa6ea72a574 affected from 856fa444b0982746f95e801bab0e586533eb29a3, before 87f2185423e01f113811301878f2f67eccec960d affected from 856fa444b0982746f95e801bab0e586533eb29a3, before 223c3bd02a582776d8ee47dae7b69d3258420694 affected from 856fa444b0982746f95e801bab0e586533eb29a3, before 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1
Other versions: unaffected
|
| Linux |
affected 6.6 unaffected before 6.6 unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.113 up to and including 6.12.* unaffected from 6.18.56 up to and including 6.18.* unaffected from 7.2.10 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98770 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98770
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-98770
trivy image --scanners vuln IMAGE | grep CVE-2026-98770
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/18138d9f19cf6944ff09f5c8c0930545036fe3d0 git.kernel.org
- https://git.kernel.org/stable/c/8294ff75a9de23f7cc641e5e5ca31fa6ea72a574 git.kernel.org
- https://git.kernel.org/stable/c/87f2185423e01f113811301878f2f67eccec960d git.kernel.org
- https://git.kernel.org/stable/c/223c3bd02a582776d8ee47dae7b69d3258420694 git.kernel.org
- https://git.kernel.org/stable/c/310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1 git.kernel.org
Source: the record CVE-2026-98770 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse