CVE-2021-47528: usb: cdnsp: Fix a NULL pointer dereference in cdnsp_endpoint_init()
In the Linux kernel, the following vulnerability has been resolved:
usb: cdnsp: Fix a NULL pointer dereference in cdnsp_endpoint_init()
In cdnsp_endpoint_init(), cdnsp_ring_alloc() is assigned to pep->ring
and there is a dereference of it in cdnsp_endpoint_init(), which could
lead to a NULL pointer dereference on failure of cdnsp_ring_alloc().
Fix this bug by adding a check of pep->ring.
This bug was found by a static analyzer. The analysis employs
differential checking to identify inconsistent security operations
(e.g., checks or kfrees) between two code paths and confirms that the
inconsistent operations are not recovered in the current function or
the callers, so they constitute bugs.
Note that, as a bug found by static analysis, it can be a false
positive or hard to trigger. Multiple researchers have cross-reviewed
the bug.
Builds with CONFIG_USB_CDNSP_GADGET=y show no new warnings,
and our static analyzer no longer warns about this code.
Security readout for executives and security teams
Plain-English summary
This is a Linux kernel denial-of-service class issue in the USB CDNDP gadget driver path. A failed memory allocation could be dereferenced as NULL, potentially crashing the kernel. The source says it was found by static analysis, may be hard to trigger, and has no cited evidence of active exploitation.
Executive priority
Treat as targeted operational risk, not broad emergency. Prioritize embedded, appliance, or USB-gadget Linux assets, then remediate through normal kernel update channels once exposure is confirmed.
Technical view
In cdnsp_endpoint_init(), cdnsp_ring_alloc() assigns pep->ring, then code later dereferences it without confirming allocation succeeded. The fix adds a pep->ring check. Evidence points to CONFIG_USB_CDNSP_GADGET builds and Linux kernel versions identified in the CVE record.
Likely exposure
Exposure appears limited to Linux systems using affected kernel versions with the CDNDP USB gadget driver enabled or reachable. Typical business servers are less likely exposed unless they run this kernel configuration or embedded USB gadget hardware.
Exploitation context
No KEV listing and no provided source claims active exploitation. The CVE description says the issue was found by static analysis and may be a false positive or hard to trigger, though cross-reviewed by researchers.
Researcher notes
The record lacks CVSS, CWE, and concrete trigger details. Avoid assuming remote exploitability. Focus validation on kernel version, driver configuration, and whether downstream distributions backported the null-check fix.
Mitigation direction
Apply Linux vendor kernel updates containing the referenced stable fixes.
Prioritize systems with CONFIG_USB_CDNSP_GADGET enabled or USB gadget roles.
Check distribution advisories for backported fixes and supported package versions.
If updates are unavailable, consult vendor guidance for disabling unused USB gadget support.
Validation and detection
Inventory Linux kernel versions against the CVE affected data.
Check kernel configuration for CONFIG_USB_CDNSP_GADGET.
Confirm deployed kernels include one of the linked stable fixes or vendor backports.
Review crash logs for CDNDP or USB gadget kernel NULL dereference traces.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2021-47528 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.