# CVE-2021-47413: usb: chipidea: ci\_hdrc\_imx: Also search for 'phys' phandle

> 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.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-21T15:04:04.060Z
- **Modified:** 2026-06-17T04:17:24.967Z

## Who should check

- Anyone running Linux \>= 746f316b753a83e366bfc5f936cbf0d72d1c2d1d, \< b3265b88e83b16c7be762fa5fb7e0632bce0002c; \>= 746f316b753a83e366bfc5f936cbf0d72d1c2d1d, \< 66dd03b10e1c0b2fae006c6e34c18ea8ee033e7b; \>= 746f316b753a83e366bfc5f936cbf0d72d1c2d1d, \< 8253a34bfae3278baca52fc1209b7c29270486ca
- Anyone running Linux 5.8

## Description

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

usb: chipidea: ci\_hdrc\_imx: Also search for 'phys' phandle

When passing 'phys' in the devicetree to describe the USB PHY phandle
(which is the recommended way according to
Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt) the
following NULL pointer dereference is observed on i.MX7 and i.MX8MM:

\[    1.489344\] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000098
\[    1.498170\] Mem abort info:
\[    1.500966\]   ESR = 0x96000044
\[    1.504030\]   EC = 0x25: DABT (current EL), IL = 32 bits
\[    1.509356\]   SET = 0, FnV = 0
\[    1.512416\]   EA = 0, S1PTW = 0
\[    1.515569\]   FSC = 0x04: level 0 translation fault
\[    1.520458\] Data abort info:
\[    1.523349\]   ISV = 0, ISS = 0x00000044
\[    1.527196\]   CM = 0, WnR = 1
\[    1.530176\] \[0000000000000098\] user address but active\_mm is swapper
\[    1.536544\] Internal error: Oops: 96000044 \[\#1\] PREEMPT SMP
\[    1.542125\] Modules linked in:
\[    1.545190\] CPU: 3 PID: 7 Comm: kworker/u8:0 Not tainted 5.14.0-dirty \#3
\[    1.551901\] Hardware name: Kontron i.MX8MM N801X S (DT)
\[    1.557133\] Workqueue: events\_unbound deferred\_probe\_work\_func
\[    1.562984\] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO BTYPE=--)
\[    1.568998\] pc : imx7d\_charger\_detection+0x3f0/0x510
\[    1.573973\] lr : imx7d\_charger\_detection+0x22c/0x510

This happens because the charger functions check for the phy presence
inside the imx\_usbmisc\_data structure (data-\>usb\_phy), but the chipidea
core populates the usb\_phy passed via 'phys' inside 'struct ci\_hdrc'
(ci-\>usb\_phy) instead.

This causes the NULL pointer dereference inside imx7d\_charger\_detection().

Fix it by also searching for 'phys' in case 'fsl,usbphy' is not found.

Tested on a imx7s-warp board.

## Affected and fixed versions

- Linux: \>= 746f316b753a83e366bfc5f936cbf0d72d1c2d1d, \< b3265b88e83b16c7be762fa5fb7e0632bce0002c; \>= 746f316b753a83e366bfc5f936cbf0d72d1c2d1d, \< 66dd03b10e1c0b2fae006c6e34c18ea8ee033e7b; \>= 746f316b753a83e366bfc5f936cbf0d72d1c2d1d, \< 8253a34bfae3278baca52fc1209b7c29270486ca (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- Upgrade Linux to 8253a34bfae3278baca52fc1209b7c29270486ca 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-47413. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47413.md
Affected: Linux >= 746f316b753a83e366bfc5f936cbf0d72d1c2d1d, < b3265b88e83b16c7be762fa5fb7e0632bce0002c; >= 746f316b753a83e366bfc5f936cbf0d72d1c2d1d, < 66dd03b10e1c0b2fae006c6e34c18ea8ee033e7b; >= 746f316b753a83e366bfc5f936cbf0d72d1c2d1d, < 8253a34bfae3278baca52fc1209b7c29270486ca; Linux 5.8
Fixed in: Linux 66dd03b10e1c0b2fae006c6e34c18ea8ee033e7b, Linux 8253a34bfae3278baca52fc1209b7c29270486ca

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-47413 being exploited?

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

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

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

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

Linux \>= 746f316b753a83e366bfc5f936cbf0d72d1c2d1d, \< b3265b88e83b16c7be762fa5fb7e0632bce0002c; \>= 746f316b753a83e366bfc5f936cbf0d72d1c2d1d, \< 66dd03b10e1c0b2fae006c6e34c18ea8ee033e7b; \>= 746f316b753a83e366bfc5f936cbf0d72d1c2d1d, \< 8253a34bfae3278baca52fc1209b7c29270486ca; Linux 5.8.

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

Yes. Fixed in Linux 66dd03b10e1c0b2fae006c6e34c18ea8ee033e7b, Linux 8253a34bfae3278baca52fc1209b7c29270486ca. Upgrade Linux to 8253a34bfae3278baca52fc1209b7c29270486ca or later.

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

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/b3265b88e83b16c7be762fa5fb7e0632bce0002c>
- patch: <https://git.kernel.org/stable/c/66dd03b10e1c0b2fae006c6e34c18ea8ee033e7b>
- patch: <https://git.kernel.org/stable/c/8253a34bfae3278baca52fc1209b7c29270486ca>

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

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