Vulnerability Report

CVE-2026-31720

RCE

Title: Linux kernel USB Gadget Stack Out-of-Bounds Write

RCE

Proof Of Concept

PoC Available for CVE-2026-31720

CWE Category CWE-787
Published Date May 01, 2026
Modified Date May 06, 2026
Exploit Status Available
Score 7.8 CVSS v3.1
Exploit Probability (EPSS)
0.18%

Vulnerability Summary

CVE-2026-31720: 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.

CVSS v3.1
Source Entity [email protected]
Severity HIGH
7.8
Attack Vector
LOCAL
Complexity
LOW
Privileges
N/A
Interaction
NONE
Confidentiality
N/A
Integrity
N/A
Availability
N/A
Scope
UNCHANGED
RAW VECTOR CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Associated Attack Patterns (CAPEC)

Total: Patterns

CVE-2026-31720 Exploits & PoCs (Proof Of Concept)

GitHub https://github.com/foxirain/linux-kernel-codex-harness
View Code
MODIFIED

Vulnerability data updated via NVD.

Attack Vector Matrix

Access Vector LOCAL
Complexity LOW
Privileges N/A
Interaction NONE
CVSS Vector String CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected Stack

No specific products linked.