# CVE-2026-31720: usb: gadget: f\_uac1\_legacy: validate control request size

> 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, NVD) `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)
- **CWE:** CWE-787
- **Published:** 2026-05-01T14:14:22.832Z
- **Modified:** 2026-11-11T21:10:00.200Z

## Who should check

- Anyone running Linux \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 557d1d4e862eccd0b74cc377b66de3e1e8d49605; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 21b11e8581285c6f10ef43d05df349d445f24273; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 0d41772d98dcaf6c17e875b7d0ea0154ae1191ee; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< c6da4fed7537aec19880c24f6c3a95065adb1406; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 8e5eb1d6e6a3d7bbea9c92132d0cda5793176426; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 26304d124e7f0383f8fe1168b5801a0ac7e16b1c; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 6e0e34d85cd46ceb37d16054e97a373a32770f6c
- Anyone running Linux 2.6.31

## Description

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

usb: gadget: f\_uac1\_legacy: validate control request size

f\_audio\_complete() copies req-\>length bytes into a 4-byte stack
variable:

  u32 data = 0;
  memcpy(&data, req-\>buf, req-\>length);

req-\>length is derived from the host-controlled USB request path,
which can lead to a stack out-of-bounds write.

Validate req-\>actual against the expected payload size for the
supported control selectors and decode only the expected amount
of data.

This avoids copying a host-influenced length into a fixed-size
stack object.

## Affected and fixed versions

- Linux: \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 557d1d4e862eccd0b74cc377b66de3e1e8d49605; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 21b11e8581285c6f10ef43d05df349d445f24273; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 0d41772d98dcaf6c17e875b7d0ea0154ae1191ee; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< c6da4fed7537aec19880c24f6c3a95065adb1406; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 8e5eb1d6e6a3d7bbea9c92132d0cda5793176426; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 26304d124e7f0383f8fe1168b5801a0ac7e16b1c; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 6e0e34d85cd46ceb37d16054e97a373a32770f6c (cvelist)
- Linux: 2.6.31 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-31720.md
Affected: Linux >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 557d1d4e862eccd0b74cc377b66de3e1e8d49605; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 21b11e8581285c6f10ef43d05df349d445f24273; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 0d41772d98dcaf6c17e875b7d0ea0154ae1191ee; >= c6994e6f067cf0fc4c6cca3…
Fixed in: Linux 557d1d4e862eccd0b74cc377b66de3e1e8d49605, Linux 21b11e8581285c6f10ef43d05df349d445f24273, Linux 0d41772d98dcaf6c17e875b7d0ea0154ae1191ee, Linux 8e5eb1d6e6a3d7bbea9c92132d0cda5793176426, Linux 26304d124e7f0383f8fe1168b5801a0ac7e16b1c, Linux 6e0e34d85cd46ceb37d16054e97a373a32770f6c

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

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

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

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

Linux \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 557d1d4e862eccd0b74cc377b66de3e1e8d49605; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 21b11e8581285c6f10ef43d05df349d445f24273; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 0d41772d98dcaf6c17e875b7d0ea0154ae1191ee; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< c6da4fed7537aec19880c24f6c3a95065adb1406; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 8e5eb1d6e6a3d7bbea9c92132d0cda5793176426; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 26304d124e7f0383f8fe1168b5801a0ac7e16b1c; \>= c6994e6f067cf0fc4c6cca3d164018b1150916f8, \< 6e0e34d85cd46ceb37d16054e97a373a32770f6c; Linux 2.6.31.

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

Yes. Fixed in Linux 557d1d4e862eccd0b74cc377b66de3e1e8d49605, Linux 21b11e8581285c6f10ef43d05df349d445f24273, Linux 0d41772d98dcaf6c17e875b7d0ea0154ae1191ee, Linux 8e5eb1d6e6a3d7bbea9c92132d0cda5793176426, Linux 26304d124e7f0383f8fe1168b5801a0ac7e16b1c, Linux 6e0e34d85cd46ceb37d16054e97a373a32770f6c. Upgrade Linux to 6e0e34d85cd46ceb37d16054e97a373a32770f6c or later.

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

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

- patch: <https://git.kernel.org/stable/c/557d1d4e862eccd0b74cc377b66de3e1e8d49605>
- patch: <https://git.kernel.org/stable/c/21b11e8581285c6f10ef43d05df349d445f24273>
- patch: <https://git.kernel.org/stable/c/0d41772d98dcaf6c17e875b7d0ea0154ae1191ee>
- patch: <https://git.kernel.org/stable/c/c6da4fed7537aec19880c24f6c3a95065adb1406>
- patch: <https://git.kernel.org/stable/c/be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8>
- patch: <https://git.kernel.org/stable/c/8e5eb1d6e6a3d7bbea9c92132d0cda5793176426>
- patch: <https://git.kernel.org/stable/c/26304d124e7f0383f8fe1168b5801a0ac7e16b1c>
- patch: <https://git.kernel.org/stable/c/6e0e34d85cd46ceb37d16054e97a373a32770f6c>

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

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