# CVE-2021-47436: usb: musb: dsps: Fix the probe error path

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-22T06:19:32.220Z
- **Modified:** 2026-06-17T04:17:28.030Z

## Who should check

- Anyone running Linux \>= 5269937d1483d3159d5b51907346e4f4b13ef079, \< 5ed60a430fb5f3d93e7fef66264daef466b4d10c; \>= ffc825049ed2e8c849d318e987fd5073e0be462f, \< e923bce31ffefe4f60edfc6b84f62d4a858f3676; \>= 9a4a6805294fa7d2653e82972bdaf9e3e1f3d3c9, \< 9ab5d539bc975b8dcde86eca1b58d836b657732e; \>= 8de01a896c1bc14b6b65b8d26013626597a45eda, \< 9d89e287116796bf987cc48f5c8632ef3048f8eb; \>= 72bb3eafcfdd156713a3ea0c9c95d536bd6e6e55, \< ff9249aab39820be11b6975a10d94253b7d426fc; \>= 7c75bde329d7e2a93cf86a5c15c61f96f1446cdc, \< c2115b2b16421d93d4993f3fe4c520e91d6fe801; f5b4df24b4209cc3b9ccc768897415be18807e46; \>= 5.13.19, \< 5.14
- Anyone running Linux \>= 4.14.247, \< 4.14.252; \>= 4.19.207, \< 4.19.213; \>= 5.4.148, \< 5.4.155; \>= 5.10.67, \< 5.10.75; \>= 5.14.6, \< 5.14.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

usb: musb: dsps: Fix the probe error path

Commit 7c75bde329d7 ("usb: musb: musb\_dsps: request\_irq() after
initializing musb") has inverted the calls to
dsps\_setup\_optional\_vbus\_irq() and dsps\_create\_musb\_pdev() without
updating correctly the error path. dsps\_create\_musb\_pdev() allocates and
registers a new platform device which must be unregistered and freed
with platform\_device\_unregister(), and this is missing upon
dsps\_setup\_optional\_vbus\_irq() error.

While on the master branch it seems not to trigger any issue, I observed
a kernel crash because of a NULL pointer dereference with a v5.10.70
stable kernel where the patch mentioned above was backported. With this
kernel version, -EPROBE\_DEFER is returned the first time
dsps\_setup\_optional\_vbus\_irq() is called which triggers the probe to
error out without unregistering the platform device. Unfortunately, on
the Beagle Bone Black Wireless, the platform device still living in the
system is being used by the USB Ethernet gadget driver, which during the
boot phase triggers the crash.

My limited knowledge of the musb world prevents me to revert this commit
which was sent to silence a robot warning which, as far as I understand,
does not make sense. The goal of this patch was to prevent an IRQ to
fire before the platform device being registered. I think this cannot
ever happen due to the fact that enabling the interrupts is done by the
-\>enable() callback of the platform musb device, and this platform
device must be already registered in order for the core or any other
user to use this callback.

Hence, I decided to fix the error path, which might prevent future
errors on mainline kernels while also fixing older ones.

## Affected and fixed versions

- Linux: \>= 5269937d1483d3159d5b51907346e4f4b13ef079, \< 5ed60a430fb5f3d93e7fef66264daef466b4d10c; \>= ffc825049ed2e8c849d318e987fd5073e0be462f, \< e923bce31ffefe4f60edfc6b84f62d4a858f3676; \>= 9a4a6805294fa7d2653e82972bdaf9e3e1f3d3c9, \< 9ab5d539bc975b8dcde86eca1b58d836b657732e; \>= 8de01a896c1bc14b6b65b8d26013626597a45eda, \< 9d89e287116796bf987cc48f5c8632ef3048f8eb; \>= 72bb3eafcfdd156713a3ea0c9c95d536bd6e6e55, \< ff9249aab39820be11b6975a10d94253b7d426fc; \>= 7c75bde329d7e2a93cf86a5c15c61f96f1446cdc, \< c2115b2b16421d93d4993f3fe4c520e91d6fe801; f5b4df24b4209cc3b9ccc768897415be18807e46; \>= 5.13.19, \< 5.14 (cvelist)
- Linux: \>= 4.14.247, \< 4.14.252; \>= 4.19.207, \< 4.19.213; \>= 5.4.148, \< 5.4.155; \>= 5.10.67, \< 5.10.75; \>= 5.14.6, \< 5.14.14 (cvelist)

## Mitigation

- Upgrade Linux to 5.14 or later.
- Upgrade Linux to 5.14.14 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47436. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47436.md
Affected: Linux >= 5269937d1483d3159d5b51907346e4f4b13ef079, < 5ed60a430fb5f3d93e7fef66264daef466b4d10c; >= ffc825049ed2e8c849d318e987fd5073e0be462f, < e923bce31ffefe4f60edfc6b84f62d4a858f3676; >= 9a4a6805294fa7d2653e82972bdaf9e3e1f3d3c9, < 9ab5d539bc975b8dcde86eca1b58d836b657732e; >= 8de01a896c1bc14b6b65b8d…
Fixed in: Linux 5ed60a430fb5f3d93e7fef66264daef466b4d10c, Linux 9ab5d539bc975b8dcde86eca1b58d836b657732e, Linux 9d89e287116796bf987cc48f5c8632ef3048f8eb, Linux 5.14, Linux 4.14.252, Linux 4.19.213, Linux 5.4.155, Linux 5.10.75, Linux 5.14.14

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47436 being exploited?

There is no confirmed exploitation: CVE-2021-47436 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47436?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47436?

Linux \>= 5269937d1483d3159d5b51907346e4f4b13ef079, \< 5ed60a430fb5f3d93e7fef66264daef466b4d10c; \>= ffc825049ed2e8c849d318e987fd5073e0be462f, \< e923bce31ffefe4f60edfc6b84f62d4a858f3676; \>= 9a4a6805294fa7d2653e82972bdaf9e3e1f3d3c9, \< 9ab5d539bc975b8dcde86eca1b58d836b657732e; \>= 8de01a896c1bc14b6b65b8d26013626597a45eda, \< 9d89e287116796bf987cc48f5c8632ef3048f8eb; \>= 72bb3eafcfdd156713a3ea0c9c95d536bd6e6e55, \< ff9249aab39820be11b6975a10d94253b7d426fc; \>= 7c75bde329d7e2a93cf86a5c15c61f96f1446cdc, \< c2115b2b16421d93d4993f3fe4c520e91d6fe801; f5b4df24b4209cc3b9ccc768897415be18807e46; \>= 5.13.19, \< 5.14; Linux \>= 4.14.247, \< 4.14.252; \>= 4.19.207, \< 4.19.213; \>= 5.4.148, \< 5.4.155; \>= 5.10.67, \< 5.10.75; \>= 5.14.6, \< 5.14.14.

### Is there a fix for CVE-2021-47436?

Yes. Fixed in Linux 5ed60a430fb5f3d93e7fef66264daef466b4d10c, Linux 9ab5d539bc975b8dcde86eca1b58d836b657732e, Linux 9d89e287116796bf987cc48f5c8632ef3048f8eb, Linux 5.14, Linux 4.14.252, Linux 4.19.213, Linux 5.4.155, Linux 5.10.75, Linux 5.14.14. Upgrade Linux to 5.14 or later. Upgrade Linux to 5.14.14 or later.

### How do I check if I'm affected by CVE-2021-47436?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/5ed60a430fb5f3d93e7fef66264daef466b4d10c>
- patch: <https://git.kernel.org/stable/c/e923bce31ffefe4f60edfc6b84f62d4a858f3676>
- patch: <https://git.kernel.org/stable/c/9ab5d539bc975b8dcde86eca1b58d836b657732e>
- patch: <https://git.kernel.org/stable/c/9d89e287116796bf987cc48f5c8632ef3048f8eb>
- patch: <https://git.kernel.org/stable/c/ff9249aab39820be11b6975a10d94253b7d426fc>
- patch: <https://git.kernel.org/stable/c/c2115b2b16421d93d4993f3fe4c520e91d6fe801>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47436>

HTML: <https://flawdb.com/CVE-2021-47436> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47436>
