// For flags

CVE-2026-31720

usb: gadget: f_uac1_legacy: validate control request size

Severity Score

7.8
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

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.

*Credits: N/A
CVSS Scores
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2026-03-09 CVE Reserved
  • 2026-05-01 CVE Published
  • 2026-05-07 EPSS Updated
  • 2026-05-11 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-787: Out-of-bounds Write
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Linux
Search vendor "Linux"
Linux Kernel
Search vendor "Linux" for product "Linux Kernel"
>= 2.6.31 < 5.10.253
Search vendor "Linux" for product "Linux Kernel" and version " >= 2.6.31 < 5.10.253"
en
Affected
Linux
Search vendor "Linux"
Linux Kernel
Search vendor "Linux" for product "Linux Kernel"
>= 2.6.31 < 5.15.203
Search vendor "Linux" for product "Linux Kernel" and version " >= 2.6.31 < 5.15.203"
en
Affected
Linux
Search vendor "Linux"
Linux Kernel
Search vendor "Linux" for product "Linux Kernel"
>= 2.6.31 < 6.1.168
Search vendor "Linux" for product "Linux Kernel" and version " >= 2.6.31 < 6.1.168"
en
Affected
Linux
Search vendor "Linux"
Linux Kernel
Search vendor "Linux" for product "Linux Kernel"
>= 2.6.31 < 6.6.134
Search vendor "Linux" for product "Linux Kernel" and version " >= 2.6.31 < 6.6.134"
en
Affected
Linux
Search vendor "Linux"
Linux Kernel
Search vendor "Linux" for product "Linux Kernel"
>= 2.6.31 < 6.12.81
Search vendor "Linux" for product "Linux Kernel" and version " >= 2.6.31 < 6.12.81"
en
Affected
Linux
Search vendor "Linux"
Linux Kernel
Search vendor "Linux" for product "Linux Kernel"
>= 2.6.31 < 6.18.22
Search vendor "Linux" for product "Linux Kernel" and version " >= 2.6.31 < 6.18.22"
en
Affected
Linux
Search vendor "Linux"
Linux Kernel
Search vendor "Linux" for product "Linux Kernel"
>= 2.6.31 < 6.19.12
Search vendor "Linux" for product "Linux Kernel" and version " >= 2.6.31 < 6.19.12"
en
Affected
Linux
Search vendor "Linux"
Linux Kernel
Search vendor "Linux" for product "Linux Kernel"
>= 2.6.31 < 7.0
Search vendor "Linux" for product "Linux Kernel" and version " >= 2.6.31 < 7.0"
en
Affected