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

Summary

CVECVE-2026-31755
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-05-01 15:16:38 UTC
Updated2026-07-04 12:16:55 UTC
DescriptionIn 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.

Risk And Classification

Primary CVSS: v3.1 5.5 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

EPSS: 0.000240000 probability, percentile 0.068060000 (date 2026-05-05)

Problem Types: CWE-476

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 7733f6c32e36ff9d7adadf40001039bf219b1cbe 3cf0580a09d417eab41ce914a11f9cde3a121871 git Not specified
CNA Linux Linux affected 7733f6c32e36ff9d7adadf40001039bf219b1cbe 3d1433fe34b224b90259e207e5389e95b504ef04 git Not specified
CNA Linux Linux affected 7733f6c32e36ff9d7adadf40001039bf219b1cbe fb2ad0c1334a3eccfe4ed203f9eef5a4879226f6 git Not specified
CNA Linux Linux affected 7733f6c32e36ff9d7adadf40001039bf219b1cbe 9ab9b0e5fcdac325f950fc8b6caa08a9e22a0db9 git Not specified
CNA Linux Linux affected 7733f6c32e36ff9d7adadf40001039bf219b1cbe d61446dfc9d387775bb1b95b081953201b9222af git Not specified
CNA Linux Linux affected 7733f6c32e36ff9d7adadf40001039bf219b1cbe 390536cc6af4ca5566bc3bf1f8b704700380cd2c git Not specified
CNA Linux Linux affected 7733f6c32e36ff9d7adadf40001039bf219b1cbe 14bf08ab2cdfcdfd3f13e799d06692a1b3e0745f git Not specified
CNA Linux Linux affected 7733f6c32e36ff9d7adadf40001039bf219b1cbe 7f6f127b9bc34bed35f56faf7ecb1561d6b39000 git Not specified
CNA Linux Linux affected 5.4 Not specified
CNA Linux Linux unaffected 5.4 semver Not specified
CNA Linux Linux unaffected 5.10.260 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.203 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.168 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.134 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.81 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.22 6.18.* semver Not specified
CNA Linux Linux unaffected 6.19.12 6.19.* semver Not specified
CNA Linux Linux unaffected 7.0 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/d61446dfc9d387775bb1b95b081953201b9222af 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/390536cc6af4ca5566bc3bf1f8b704700380cd2c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/9ab9b0e5fcdac325f950fc8b6caa08a9e22a0db9 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/14bf08ab2cdfcdfd3f13e799d06692a1b3e0745f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/7f6f127b9bc34bed35f56faf7ecb1561d6b39000 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/3d1433fe34b224b90259e207e5389e95b504ef04 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/fb2ad0c1334a3eccfe4ed203f9eef5a4879226f6 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/3cf0580a09d417eab41ce914a11f9cde3a121871 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report