Skip to main content

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_uac1_legacy: validate bRequest index in generic_{set,get}_cmd… (CVE-2026-98769)

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 function f_uac1_legacy allows out-of-bounds memory access due to improper validation of the bRequest index in generic_set_cmd() and generic_get_cmd(). This can be triggered by a malicious USB host sending crafted class-specific SET_CUR or GET_CUR requests, causing heap memory corruption.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 22:22:09 UTC

Technical Analysis

The vulnerability in the Linux kernel affects the usb gadget function f_uac1_legacy, where the low nibble of ctrl->bRequest is used as an index into a 5-element array con->data[]. However, the code does not validate that this index is less than 5, allowing indices from 5 to 15 to cause out-of-bounds reads or writes up to 44 bytes beyond the array boundary on the heap. This occurs in generic_set_cmd() and generic_get_cmd() functions, which are called from an IRQ completion handler. A malicious USB host can exploit this by sending crafted class-specific SET_CUR or GET_CUR requests with arbitrary bRequest values. The fix involves adding an ARRAY_SIZE() guard to validate the index before accessing the array.

Potential Impact

Heap out-of-bounds read or write can occur, potentially leading to memory corruption. This could affect system stability or security, but no specific exploitation details or known exploits in the wild are reported.

Mitigation Recommendations

A fix has been applied to the Linux kernel source code by adding an ARRAY_SIZE() guard to validate the bRequest index in generic_set_cmd() and generic_get_cmd(). Users should update their Linux kernel to a version that includes this patch once available. No other mitigation steps are indicated.

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-m6wv-vgq8-7pqj
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98769"]

Threat ID: 6ad520aa2cdf04f6569939b2

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

Last enriched: 10/18/2026, 22:22:09 UTC

Last updated: 10/18/2026, 22:22:09 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