Stack-based buffer overflow in Linux kernel - CVE-2026-31720

 

Stack-based buffer overflow in Linux kernel - CVE-2026-31720

Published: May 2, 2026


Vulnerability identifier: #VU128970
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-31720
CWE-ID: CWE-121
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: Linux Foundation
Affected software:
Linux kernel

Detailed vulnerability description

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to stack-based buffer overflow in f_audio_complete() in the f_uac1_legacy USB gadget function driver when handling host-controlled USB control requests. A remote attacker can send a specially crafted USB control request with an oversized length value to cause a denial of service.

The issue arises because request data is copied into a fixed-size 4-byte stack variable using a host-influenced length.


How to mitigate CVE-2026-31720

Install security update from vendor's repository.

Sources