# CVE-2026-89735: usb: gadget: midi2: remove default configfs groups on teardown

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-09-11T19:46:43.899Z
- **Modified:** 2026-10-19T09:18:16.227Z

## Who should check

- Anyone running Linux \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< 79dbedf40ad930f83839e564394dc5d1a54938c6; \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< 4beda67ee72e0c8df5b49951dd8b96f6adb25e02; \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< a15c2acd3083461f91725760e59dff88b33c28f6; \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< 9ea5dfb2bfef4f8a7e704d1921d8a790cb7fb700; \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< 0f6bffb5008f0cba9cad5ded2caccc64466a6e54
- Anyone running Linux 6.6

## Description

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: midi2: remove default configfs groups on teardown

f\_midi2\_alloc\_inst() creates default configfs child groups for the
default endpoint and default block using configfs\_add\_default\_group(),
setting their internal refcount to 1.

However, during function teardown in f\_midi2\_free\_inst() or EP cleanup
in f\_midi2\_ep\_opts\_release(), configfs\_remove\_default\_groups() is
never called, therefore never dropping the refcount and leaking struct
f\_midi2\_ep\_opts and f\_midi2\_block\_opts.

Add the missing configfs\_remove\_default\_groups() in the afformentioned
functions to free the structs properly.

## Affected and fixed versions

- Linux: \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< 79dbedf40ad930f83839e564394dc5d1a54938c6; \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< 4beda67ee72e0c8df5b49951dd8b96f6adb25e02; \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< a15c2acd3083461f91725760e59dff88b33c28f6; \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< 9ea5dfb2bfef4f8a7e704d1921d8a790cb7fb700; \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< 0f6bffb5008f0cba9cad5ded2caccc64466a6e54 (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- Upgrade Linux to 0f6bffb5008f0cba9cad5ded2caccc64466a6e54 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-89735. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89735.md
Affected: Linux >= 8b645922b22303cec4628dbbbf6c8553d1cdec87, < 79dbedf40ad930f83839e564394dc5d1a54938c6; >= 8b645922b22303cec4628dbbbf6c8553d1cdec87, < 4beda67ee72e0c8df5b49951dd8b96f6adb25e02; >= 8b645922b22303cec4628dbbbf6c8553d1cdec87, < a15c2acd3083461f91725760e59dff88b33c28f6; >= 8b645922b22303cec4628db…
Fixed in: Linux 79dbedf40ad930f83839e564394dc5d1a54938c6, Linux 4beda67ee72e0c8df5b49951dd8b96f6adb25e02, Linux 9ea5dfb2bfef4f8a7e704d1921d8a790cb7fb700, Linux 0f6bffb5008f0cba9cad5ded2caccc64466a6e54

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.
```

## FAQ

### Is CVE-2026-89735 being exploited?

There is no confirmed exploitation: CVE-2026-89735 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-89735?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-89735?

Linux \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< 79dbedf40ad930f83839e564394dc5d1a54938c6; \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< 4beda67ee72e0c8df5b49951dd8b96f6adb25e02; \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< a15c2acd3083461f91725760e59dff88b33c28f6; \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< 9ea5dfb2bfef4f8a7e704d1921d8a790cb7fb700; \>= 8b645922b22303cec4628dbbbf6c8553d1cdec87, \< 0f6bffb5008f0cba9cad5ded2caccc64466a6e54; Linux 6.6.

### Is there a fix for CVE-2026-89735?

Yes. Fixed in Linux 79dbedf40ad930f83839e564394dc5d1a54938c6, Linux 4beda67ee72e0c8df5b49951dd8b96f6adb25e02, Linux 9ea5dfb2bfef4f8a7e704d1921d8a790cb7fb700, Linux 0f6bffb5008f0cba9cad5ded2caccc64466a6e54. Upgrade Linux to 0f6bffb5008f0cba9cad5ded2caccc64466a6e54 or later.

### How do I check if I'm affected by CVE-2026-89735?

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.

## References

- other: <https://git.kernel.org/stable/c/79dbedf40ad930f83839e564394dc5d1a54938c6>
- other: <https://git.kernel.org/stable/c/4beda67ee72e0c8df5b49951dd8b96f6adb25e02>
- other: <https://git.kernel.org/stable/c/a15c2acd3083461f91725760e59dff88b33c28f6>
- other: <https://git.kernel.org/stable/c/9ea5dfb2bfef4f8a7e704d1921d8a790cb7fb700>
- other: <https://git.kernel.org/stable/c/0f6bffb5008f0cba9cad5ded2caccc64466a6e54>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-89735>

HTML: <https://flawdb.com/CVE-2026-89735> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-89735>
