CVE-2026-31755

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

published May 1, 2026

CVSS
—
EPSS
0%
Percentile
5.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00162 · 5.1th percentile
Published
2026-05-01T14:14Z
EPSS history
Timeline
  • 01 MAY 14:14Z
    usb: cdns3: gadget: fix NULL pointer dereference in ep_queue
    cvelistv5