CVE-2026-31755

MEDIUM

usb: cdns3: gadget: fix NULL pointer dereference in ep_queue

Title source: cna
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: usb: cdns3: gadget: fix NULL pointer dereference in ep_queue When the gadget endpoint is disabled or not yet configured, the ep->desc pointer can be NULL. This leads to a NULL pointer dereference when __cdns3_gadget_ep_queue() is called, causing a kernel crash. Add a check to return -ESHUTDOWN if ep->desc is NULL, which is the standard return code for unconfigured endpoints. This prevents potential crashes when ep_queue is called on endpoints that are not ready.

Scores

CVSS v3 5.5
EPSS 0.0001
EPSS Percentile 2.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-476
Status published
Products (18)
Linux/Linux < 5.4
Linux/Linux 5.15.203 - 5.15.*
Linux/Linux 5.4
Linux/Linux 6.1.168 - 6.1.*
Linux/Linux 6.12.81 - 6.12.*
Linux/Linux 6.18.22 - 6.18.*
Linux/Linux 6.19.12 - 6.19.*
Linux/Linux 6.6.134 - 6.6.*
Linux/Linux 7.0
Linux/Linux 7733f6c32e36ff9d7adadf40001039bf219b1cbe - 14bf08ab2cdfcdfd3f13e799d06692a1b3e0745f
... and 8 more
Published May 01, 2026
Tracked Since May 01, 2026