CVE-2026-31720 Details
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.
A vulnerability in the Linux kernel's USB gadget functionality, specifically in the 'f_uac1_legacy' audio function, has been addressed. The issue arose because the 'f_audio_complete' function improperly handled control request sizes, leading to a stack-based out-of-bounds write. This vulnerability was introduced by allowing the request length to be influenced by the host, which could overwrite adjacent memory on the stack. The vulnerability affects several versions of the Linux kernel.
Users can upgrade to the latest version of the Linux kernel, where this vulnerability has been fixed. Instructions for downloading the patched version are available on the official Linux kernel website.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0d41772d98dcaf6c17e875b7d0ea0154ae1191ee | kernel.org | Patch |
| https://git.kernel.org/stable/c/21b11e8581285c6f10ef43d05df349d445f24273 | kernel.org | Patch |
| https://git.kernel.org/stable/c/26304d124e7f0383f8fe1168b5801a0ac7e16b1c | kernel.org | Patch |
| https://git.kernel.org/stable/c/557d1d4e862eccd0b74cc377b66de3e1e8d49605 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6e0e34d85cd46ceb37d16054e97a373a32770f6c | kernel.org | Patch |
| https://git.kernel.org/stable/c/8e5eb1d6e6a3d7bbea9c92132d0cda5793176426 | kernel.org | Patch |
| https://git.kernel.org/stable/c/be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c6da4fed7537aec19880c24f6c3a95065adb1406 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 2.6.31, < 5.10.253 >= 5.11, < 5.15.203 >= 5.16, < 6.1.168 >= 6.2, < 6.6.134 >= 6.7, < 6.12.81 >= 6.13, < 6.18.22 >= 6.19, < 6.19.12 7.0 rc1 7.0 rc2 7.0 rc3 7.0 rc4 7.0 rc5 7.0 rc6 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 11, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| May 6, 2026 | Initial Analysis | [email protected] |
| May 1, 2026 | New CVE Received | kernel.org |