Skip to main content

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: midi2: Fix the jack descriptor array sizes The jack in/out… (CVE-2026-98770)

0
Medium
Published: 10/18/2026 (10/18/2026, 18:32:02 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel's USB gadget MIDI2 driver was resolved by correcting the jack descriptor array sizes. The jack in/out descriptor arrays were incorrectly sized as MAX_CABLES, but since entries are added for both inputs and outputs, the arrays needed to be sized at twice MAX_CABLES. This mismatch could lead to out-of-bounds (OOB) access when a large number of jacks are configured via configfs. The issue was fixed by adjusting the array sizes to MAX_CABLES * 2.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 22:24:14 UTC

Technical Analysis

The Linux kernel's usb gadget midi2 driver had a vulnerability due to incorrect sizing of the jack in/out descriptor arrays in struct f_midi2_usb_config. The arrays were sized as MAX_CABLES, but since entries are added for both inputs and outputs in each loop iteration, the actual required size is twice that. This inconsistency could cause out-of-bounds memory access when many jacks are set up via configfs, despite the loop count being limited to MAX_CABLES. The fix involved resizing the jack_ins and jack_outs arrays to MAX_CABLES * 2 to prevent potential OOB conditions.

Potential Impact

The vulnerability could lead to out-of-bounds memory access in the Linux kernel USB gadget MIDI2 driver when configuring a large number of jacks, potentially causing memory corruption or instability. No specific exploitation details or active exploits are known. The impact is limited to configurations involving many MIDI jack descriptors via configfs.

Mitigation Recommendations

A fix is available that corrects the jack descriptor array sizes to twice MAX_CABLES. Users should update their Linux kernel to a version that includes this fix. Since this is a kernel-level issue, applying the official kernel patch or upgrading to a fixed kernel release is the recommended remediation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-2cr9-h7x6-p393
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98770"]

Threat ID: 6ad520ab2cdf04f6569939d5

Added to database: 10/18/2026, 19:40:27 UTC

Last enriched: 10/18/2026, 22:24:14 UTC

Last updated: 10/18/2026, 22:24:14 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses