usb: typec: hd3ss3220: track VBUS enable state per consumer
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: typec: hd3ss3220: track VBUS enable state per consumer
regulator_is_enabled() reports the aggregate regulator state, not whether this consumer holds an enable reference. If another consumer enables VBUS first, the driver can skip its own regulator_enable() call and later attempt to drop a reference it never acquired, triggering an unbalanced regulator disable warning.
Track successful enable and disable calls locally. Keep the state unchanged when an operation fails so a later role or ID notification retries the operation while this consumer keeps balanced references.
From the CVE record · Linux
The Linux kernel’s USB Type-C hd3ss3220 driver can mistake another consumer’s VBUS enable state for its own. If another consumer enables VBUS first, the driver may try to release a reference it never acquired, triggering an unbalanced regulator disable warning. The input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the USB Type-C hd3ss3220 driver should check their versions against the vendor advisory; affected versions were not provided.