usb: common: usb-conn-gpio: fix NULL pointer dereference of charger
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s usb-conn-gpio component can dereference a NULL charger pointer when a system powers on with an OTG cable and the IDDIG interrupt occurs before charger registration. This can cause a kernel fault; the input does not describe an attacker, authentication requirement, or other user interaction.
Engineers running Linux kernels with the usb-conn-gpio component should check whether their kernel includes the fix; affected versions are not specified.