CVE-2026-31755 usb: cdns3: gadget: fix NULL pointer dereference in ep_queue

Medium 5.5 Published Updated

A NULL pointer dereference in the Linux kernel's cdns3 USB gadget driver allows local attackers to cause a system crash.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-31755?

CVE-2026-31755 is a medium-severity vulnerability in Linux kernel, published on 1 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-476

Which versions are affected by CVE-2026-31755?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2026-31755?

Apply the vendor's patch.

Is CVE-2026-31755 being exploited?

There is no known exploitation of CVE-2026-31755 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2026-31755, DEBIAN-CVE-2026-31755, GHSA-5r68-rpxc-f6cw, ROOT-OS-DEBIAN-11-CVE-2026-31755, ROOT-OS-UBUNTU-2204-CVE-2026-31755, ROOT-OS-UBUNTU-2404-CVE-2026-31755 and 1 more.

Is CVE-2026-31755 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free