CVE-2026-31755

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

No CVSS score yet EPSS 0.13%

Published 1 May 2026 Updated 4 Jul 2026 CNA: Linux

Check your servers for CVE-2026-31755

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31755 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.13%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.59% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before 3cf0580a09d417eab41ce914a11f9cde3a121871
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before 3d1433fe34b224b90259e207e5389e95b504ef04
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before fb2ad0c1334a3eccfe4ed203f9eef5a4879226f6
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before 9ab9b0e5fcdac325f950fc8b6caa08a9e22a0db9
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before d61446dfc9d387775bb1b95b081953201b9222af
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before 390536cc6af4ca5566bc3bf1f8b704700380cd2c
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before 14bf08ab2cdfcdfd3f13e799d06692a1b3e0745f
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before 7f6f127b9bc34bed35f56faf7ecb1561d6b39000
Other versions: unaffected
Linux
affected 5.4
unaffected before 5.4
unaffected from 5.10.260 up to and including 5.10.*
unaffected from 5.15.203 up to and including 5.15.*
unaffected from 6.1.168 up to and including 6.1.*
unaffected from 6.6.134 up to and including 6.6.*
unaffected from 6.12.81 up to and including 6.12.*
unaffected from 6.18.22 up to and including 6.18.*
unaffected from 6.19.12 up to and including 6.19.*
unaffected 7.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31755 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31755

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-31755
trivy image --scanners vuln IMAGE | grep CVE-2026-31755

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-31755 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.