usb: typec: wusb3801: fix fwnode refcount leak in wusb3801_probe()
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 |
|
|
6.0.166.1.26.2In the Linux kernel, the following vulnerability has been resolved:
usb: typec: wusb3801: fix fwnode refcount leak in wusb3801_probe()
I got the following report while doing fault injection test:
OF: ERROR: memory leak, expected refcount 1 instead of 4, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /i2c/tcpc@60/connector
If wusb3801_hw_init() fails, fwnode_handle_put() needs be called to avoid refcount leak.
From the CVE record · Linux
The Linux kernel's USB Type-C wusb3801 probe leaks a firmware-node reference if wusb3801_hw_init() fails. The input does not describe an attacker, exploit conditions, or whether authentication or user interaction is required.
Engineers running Linux kernels with the wusb3801 driver should check their versions; affected versions are not specified.