CVE-2026-31720
usb: gadget: f_uac1_legacy: validate control request size
Mitigation
- Upgrade Linux to 6e0e34d85cd46ceb37d16054e97a373a32770f6c or later.
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
Vulnerability facts
- Affected
- Linux >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 557d1d4e862eccd0b74cc377b66de3e1e8d49605; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 21b11e8581285c6f10ef43d05df349d445f24273; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 0d41772d98dcaf6c17e875b7d0ea0154ae1191ee; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < c6da4fed7537aec19880c24f6c3a95065adb1406; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 8e5eb1d6e6a3d7bbea9c92132d0cda5793176426; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 26304d124e7f0383f8fe1168b5801a0ac7e16b1c; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 6e0e34d85cd46ceb37d16054e97a373a32770f6c; Linux 2.6.31
- Fixed in
- Linux 557d1d4e862eccd0b74cc377b66de3e1e8d49605, Linux 21b11e8581285c6f10ef43d05df349d445f24273, Linux 0d41772d98dcaf6c17e875b7d0ea0154ae1191ee, Linux 8e5eb1d6e6a3d7bbea9c92132d0cda5793176426, Linux 26304d124e7f0383f8fe1168b5801a0ac7e16b1c, Linux 6e0e34d85cd46ceb37d16054e97a373a32770f6c
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.18% chance of exploitation in 30 days (percentile 4, 2026-11-26)
- CWE
- CWE-787
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 557d1d4e862eccd0b74cc377b66de3e1e8d49605; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 21b11e8581285c6f10ef43d05df349d445f24273; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 0d41772d98dcaf6c17e875b7d0ea0154ae1191ee; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < c6da4fed7537aec19880c24f6c3a95065adb1406; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 8e5eb1d6e6a3d7bbea9c92132d0cda5793176426; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 26304d124e7f0383f8fe1168b5801a0ac7e16b1c; >= c6994e6f067cf0fc4c6cca3d164018b1150916f8, < 6e0e34d85cd46ceb37d16054e97a373a32770f6c | — | cvelist |
| Linux | 2.6.31 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://git.kernel.org/stable/c/557d1d4e862eccd0b74cc377b66de3e1e8d49605
- https://git.kernel.org/stable/c/21b11e8581285c6f10ef43d05df349d445f24273
- https://git.kernel.org/stable/c/0d41772d98dcaf6c17e875b7d0ea0154ae1191ee
- https://git.kernel.org/stable/c/c6da4fed7537aec19880c24f6c3a95065adb1406
- https://git.kernel.org/stable/c/be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8
- https://git.kernel.org/stable/c/8e5eb1d6e6a3d7bbea9c92132d0cda5793176426
- https://git.kernel.org/stable/c/26304d124e7f0383f8fe1168b5801a0ac7e16b1c
- https://git.kernel.org/stable/c/6e0e34d85cd46ceb37d16054e97a373a32770f6c
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.