CVE-2026-31720: usb: gadget: f_uac1_legacy: validate control request size
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: fuac1legacy: validate control request size
faudiocomplete() 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 Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-31720?
CVE-2026-31720 has a high severity rating of 7.8 on the CVSS scale.
How do I fix CVE-2026-31720?
The recommended fix for CVE-2026-31720 is to apply the available patch.
What systems are affected by CVE-2026-31720?
CVE-2026-31720 affects the Linux kernel and related components utilized in Linux systems.
What type of vulnerability is CVE-2026-31720?
CVE-2026-31720 is a stack memory corruption vulnerability that arises from improper validation of control request sizes.
When was CVE-2026-31720 published?
CVE-2026-31720 was published on May 1, 2026.