In the Linux kernel, the following vulnerability has been resolved: usb: gadget: midi2: remove default configfs groups on teardown… (CVE-2026-89735)
A use-after-free memory leak vulnerability in the Linux kernel's usb gadget midi2 driver was resolved by ensuring proper removal of default configfs groups during teardown. The issue involved missing calls to configfs_remove_default_groups(), causing leaked internal structures.
AI Analysis
Technical Summary
The vulnerability in the Linux kernel usb gadget midi2 driver arises because the function f_midi2_alloc_inst() creates default configfs child groups with a reference count of 1, but during teardown in f_midi2_free_inst() or endpoint cleanup in f_midi2_ep_opts_release(), the corresponding removal function configfs_remove_default_groups() was not called. This omission causes the reference counts to never decrement, leading to memory leaks of struct f_midi2_ep_opts and f_midi2_block_opts. The fix adds the missing calls to properly free these structures.
Potential Impact
The vulnerability causes a memory leak in the kernel's usb gadget midi2 driver due to unreleased configfs groups. This could lead to resource exhaustion over time if the affected functionality is repeatedly used, potentially impacting system stability. No direct exploit or active exploitation is reported.
Mitigation Recommendations
A fix has been implemented in the Linux kernel source to add the missing calls to configfs_remove_default_groups() during teardown and endpoint cleanup. Users should update to the fixed kernel versions once available. No additional mitigation is indicated.
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: midi2: remove default configfs groups on teardown… (CVE-2026-89735)
Description
A use-after-free memory leak vulnerability in the Linux kernel's usb gadget midi2 driver was resolved by ensuring proper removal of default configfs groups during teardown. The issue involved missing calls to configfs_remove_default_groups(), causing leaked internal structures.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel usb gadget midi2 driver arises because the function f_midi2_alloc_inst() creates default configfs child groups with a reference count of 1, but during teardown in f_midi2_free_inst() or endpoint cleanup in f_midi2_ep_opts_release(), the corresponding removal function configfs_remove_default_groups() was not called. This omission causes the reference counts to never decrement, leading to memory leaks of struct f_midi2_ep_opts and f_midi2_block_opts. The fix adds the missing calls to properly free these structures.
Potential Impact
The vulnerability causes a memory leak in the kernel's usb gadget midi2 driver due to unreleased configfs groups. This could lead to resource exhaustion over time if the affected functionality is repeatedly used, potentially impacting system stability. No direct exploit or active exploitation is reported.
Mitigation Recommendations
A fix has been implemented in the Linux kernel source to add the missing calls to configfs_remove_default_groups() during teardown and endpoint cleanup. Users should update to the fixed kernel versions once available. No additional mitigation is indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-c38q-5hmw-mm46
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-89735"]
Threat ID: 6aa49ffb55bf5e2cf5a865d5
Added to database: 09/12/2026, 00:42:35 UTC
Last enriched: 09/12/2026, 00:50:31 UTC
Last updated: 09/12/2026, 00:50:31 UTC
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.