# CVE-2026-93122: usb: gadget: uac: validate rate list length before storing

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **Published:** 2026-09-17T16:11:27.890Z
- **Modified:** 2026-10-30T13:20:57.807Z

## Who should check

- Anyone running Linux \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 30b3b3494000aa01fc8f08bf07ed503c9fde4895; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 72888d54bae3677ecd4ba9793b7fd27ba0b27862; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 0c2710a36b41bf8defba83c395b99eb1660e9e9a; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 0203146ad450932c2d3132e367a99c49efe3122d; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 844d83d5964b87919b958ff48405188c6ddae9cc
- Anyone running Linux 5.18

## Description

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

usb: gadget: uac: validate rate list length before storing

UAC1 and UAC2 configfs rate-list attributes parse a comma-separated
list of sampling rates and store each parsed value in fixed-size arrays.
The arrays have UAC\_MAX\_RATES entries, but the store paths do not check
that the input contains at most that many tokens before writing through
opts-\>name\#\#s\[i++\].

Writing more than ten rates therefore writes past the end of the
p\_srates\[\] or c\_srates\[\] array in struct f\_uac1\_opts or struct
f\_uac2\_opts.

With CONFIG\_UBSAN\_BOUNDS enabled, writing an 11-entry rate list to the
UAC1 p\_srate attribute reports:

  UBSAN: array-index-out-of-bounds
  drivers/usb/gadget/function/f\_uac1.c:1669:1
  index 10 is out of range for type 'int \[10\]'
  \_\_ubsan\_handle\_out\_of\_bounds.cold
  f\_uac1\_opts\_p\_srate\_store
  configfs\_write\_iter
  vfs\_write
  ksys\_write
  do\_syscall\_64

The same reproducer against the UAC2 p\_srate attribute reports:

  UBSAN: array-index-out-of-bounds
  drivers/usb/gadget/function/f\_uac2.c:2087:1
  index 10 is out of range for type 'int \[10\]'
  \_\_ubsan\_handle\_out\_of\_bounds.cold
  f\_uac2\_opts\_p\_srate\_store
  configfs\_write\_iter
  vfs\_write
  ksys\_write
  do\_syscall\_64

Reject additional tokens once UAC\_MAX\_RATES entries have been parsed.
Also keep the original kstrdup() pointer for kfree(), because strsep()
advances the parsing cursor. Freeing the advanced cursor leaks the
original buffer on successful parses and can free an interior pointer on
some error paths.

## Affected and fixed versions

- Linux: \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 30b3b3494000aa01fc8f08bf07ed503c9fde4895; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 72888d54bae3677ecd4ba9793b7fd27ba0b27862; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 0c2710a36b41bf8defba83c395b99eb1660e9e9a; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 0203146ad450932c2d3132e367a99c49efe3122d; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 844d83d5964b87919b958ff48405188c6ddae9cc (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 844d83d5964b87919b958ff48405188c6ddae9cc 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-93122. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-93122.md
Affected: Linux >= a7339e4f5788bd088bb0be1f96a6cce459676ed0, < 30b3b3494000aa01fc8f08bf07ed503c9fde4895; >= a7339e4f5788bd088bb0be1f96a6cce459676ed0, < 72888d54bae3677ecd4ba9793b7fd27ba0b27862; >= a7339e4f5788bd088bb0be1f96a6cce459676ed0, < 0c2710a36b41bf8defba83c395b99eb1660e9e9a; >= a7339e4f5788bd088bb0be1…
Fixed in: Linux 30b3b3494000aa01fc8f08bf07ed503c9fde4895, Linux 72888d54bae3677ecd4ba9793b7fd27ba0b27862, Linux 0c2710a36b41bf8defba83c395b99eb1660e9e9a, Linux 0203146ad450932c2d3132e367a99c49efe3122d, Linux 3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb, Linux 844d83d5964b87919b958ff48405188c6ddae9cc

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-93122 being exploited?

There is no confirmed exploitation: CVE-2026-93122 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-93122?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 30b3b3494000aa01fc8f08bf07ed503c9fde4895; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 72888d54bae3677ecd4ba9793b7fd27ba0b27862; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 0c2710a36b41bf8defba83c395b99eb1660e9e9a; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 0203146ad450932c2d3132e367a99c49efe3122d; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb; \>= a7339e4f5788bd088bb0be1f96a6cce459676ed0, \< 844d83d5964b87919b958ff48405188c6ddae9cc; Linux 5.18.

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

Yes. Fixed in Linux 30b3b3494000aa01fc8f08bf07ed503c9fde4895, Linux 72888d54bae3677ecd4ba9793b7fd27ba0b27862, Linux 0c2710a36b41bf8defba83c395b99eb1660e9e9a, Linux 0203146ad450932c2d3132e367a99c49efe3122d, Linux 3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb, Linux 844d83d5964b87919b958ff48405188c6ddae9cc. Upgrade Linux to 844d83d5964b87919b958ff48405188c6ddae9cc or later.

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

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/30b3b3494000aa01fc8f08bf07ed503c9fde4895>
- other: <https://git.kernel.org/stable/c/72888d54bae3677ecd4ba9793b7fd27ba0b27862>
- other: <https://git.kernel.org/stable/c/0c2710a36b41bf8defba83c395b99eb1660e9e9a>
- other: <https://git.kernel.org/stable/c/0203146ad450932c2d3132e367a99c49efe3122d>
- other: <https://git.kernel.org/stable/c/3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb>
- other: <https://git.kernel.org/stable/c/844d83d5964b87919b958ff48405188c6ddae9cc>

## 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-93122>

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