CVE-2021-47331 usb: common: usb-conn-gpio: fix NULL pointer dereference of charger
A race condition in the Linux kernel USB connector driver causes a NULL pointer dereference and system crash when an OTG cable is connected during boot.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-47331?
CVE-2021-47331 is a medium-severity vulnerability in Linux kernel, published on 21 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2021-47331?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47331?
Apply the vendor's patch.
Is CVE-2021-47331 being exploited?
There is no known exploitation of CVE-2021-47331 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47331, GHSA-836m-cmjj-qv5g, UBUNTU-CVE-2021-47331.