What’s Vulnerable › Vulnerabilities
CVE-2021-47331: usb: common: usb-conn-gpio: fix NULL pointer dereference of charger
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-21 · updated 2026-06-17
- Weakness: CWE-476
Description
In the Linux kernel, the following vulnerability has been resolved: usb: common: usb-conn-gpio: fix NULL pointer dereference of charger When power on system with OTG cable, IDDIG's interrupt arises before the charger registration, it will cause a NULL pointer dereference, fix the issue by registering the power supply before requesting IDDIG/VBUS irq.
Affected products
- Linux kernel: before 5.10.52; from 5.11 before 5.12.19; from 5.13 before 5.13.4 — fixed in 5.10.52, 5.12.19, 5.13.4
How to fix
Upgrade to a fixed version: Linux kernel 5.10.52, 5.12.19, 5.13.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/1a133a0996d6b4c83509d570ed4edcba34c44f25
- https://git.kernel.org/stable/c/436906fd248e018403bcda61a9311d9af02912f1
- https://git.kernel.org/stable/c/880287910b1892ed2cb38977893b947382a09d21
- https://git.kernel.org/stable/c/8e8d910e9a3a7fba86140aff4924c30955ab228b
- https://git.kernel.org/stable/c/1a133a0996d6b4c83509d570ed4edcba34c44f25
- https://git.kernel.org/stable/c/436906fd248e018403bcda61a9311d9af02912f1
- https://git.kernel.org/stable/c/880287910b1892ed2cb38977893b947382a09d21
- https://git.kernel.org/stable/c/8e8d910e9a3a7fba86140aff4924c30955ab228b
Get alerted when CVE-2021-47331 or the next vulnerability affects your stack