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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-01T14:14:46.288Z
- Modified: 2026-11-11T21:10:00.200Z
- Weaknesses: CWE-476
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 7733f6c32e36ff9d7adadf40001039bf219b1cbe before 3cf0580a09d417eab41ce914a11f9cde3a121871; from 7733f6c32e36ff9d7adadf40001039bf219b1cbe before 3d1433fe34b224b90259e207e5389e95b504ef04; from 7733f6c32e36ff9d7adadf40001039bf219b1cbe before fb2ad0c1334a3eccfe4ed203f9eef5a4879226f6; from 7733f6c32e36ff9d7adadf40001039bf219b1cbe before 9ab9b0e5fcdac325f950fc8b6caa08a9e22a0db9; from 7733f6c32e36ff9d7adadf40001039bf219b1cbe before d61446dfc9d387775bb1b95b081953201b9222af; from 7733f6c32e36ff9d7adadf40001039bf219b1cbe before 390536cc6af4ca5566bc3bf1f8b704700380cd2c; from 7733f6c32e36ff9d7adadf40001039bf219b1cbe before 14bf08ab2cdfcdfd3f13e799d06692a1b3e0745f; from 7733f6c32e36ff9d7adadf40001039bf219b1cbe before 7f6f127b9bc34bed35f56faf7ecb1561d6b39000; 5.4 (not affected: before 5.4; from 5.10.260 up to 5.10.*; from 5.15.203 up to 5.15.*; from 6.1.168 up to 6.1.*; from 6.6.134 up to 6.6.*; from 6.12.81 up to 6.12.*; from 6.18.22 up to 6.18.*; from 6.19.12 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 5.4 before 5.15.203; from 5.16 before 6.1.168; from 6.2 before 6.6.134; from 6.7 before 6.12.81; from 6.13 before 6.18.22; from 6.19 before 6.19.12; 7.0

## References

- <https://git.kernel.org/stable/c/3cf0580a09d417eab41ce914a11f9cde3a121871>
- <https://git.kernel.org/stable/c/3d1433fe34b224b90259e207e5389e95b504ef04> (patch)
- <https://git.kernel.org/stable/c/fb2ad0c1334a3eccfe4ed203f9eef5a4879226f6> (patch)
- <https://git.kernel.org/stable/c/9ab9b0e5fcdac325f950fc8b6caa08a9e22a0db9> (patch)
- <https://git.kernel.org/stable/c/d61446dfc9d387775bb1b95b081953201b9222af> (patch)
- <https://git.kernel.org/stable/c/390536cc6af4ca5566bc3bf1f8b704700380cd2c> (patch)
- <https://git.kernel.org/stable/c/14bf08ab2cdfcdfd3f13e799d06692a1b3e0745f> (patch)
- <https://git.kernel.org/stable/c/7f6f127b9bc34bed35f56faf7ecb1561d6b39000> (patch)

## Sources

- CVE List: [CVE-2026-31755](https://www.cve.org/CVERecord?id=CVE-2026-31755), CVE Terms of Use, modified 2026-07-04
- NVD: [CVE-2026-31755](https://nvd.nist.gov/vuln/detail/CVE-2026-31755), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31755 · Whole record: https://cve.day/CVE-2026-31755.json · Rebuilt by cve.day 2026-11-25T22:59:20.371Z
