CVE-2026-31755
NULL pointer dereference in Linux kernel USB gadget driver
Publication date: 2026-05-01
Last updated on: 2026-05-01
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the Linux kernel's USB gadget driver for cdns3. Specifically, when a gadget endpoint is disabled or not yet configured, a pointer called ep->desc can be NULL. If the function __cdns3_gadget_ep_queue() is called in this state, it attempts to dereference this NULL pointer, which causes the kernel to crash.
The fix involves adding a check to see if ep->desc is NULL and returning an error code (-ESHUTDOWN) if it is, preventing the kernel crash by avoiding the NULL pointer dereference.
How can this vulnerability impact me? :
This vulnerability can cause the Linux kernel to crash when the affected USB gadget endpoint is accessed while disabled or unconfigured. Such a crash can lead to system instability, denial of service, or unexpected reboots, potentially disrupting normal operations.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, update the Linux kernel to a version that includes the fix for the NULL pointer dereference in the cdns3 gadget endpoint. The fix adds a check to return -ESHUTDOWN if the endpoint descriptor is NULL, preventing kernel crashes.