gpio: arizona: Fix runtime PM leak in arizona_gpio_direction_out()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 27a49ed17e2245cacbdea88ad78b8494653e0338 · < a9f738487c11fb512dadef097b56020239c21810| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
gpio: arizona: Fix runtime PM leak in arizona_gpio_direction_out()
Switching a persistent GPIO line from input to output acquires a runtime PM reference on the parent device, but if the subsequent regmap_update_bits() fails the reference is never dropped and no later direction_in() can balance it since the direction was never changed. Drop the reference on the update failure path.
From the CVE record · Linux
The Linux kernel's arizona GPIO driver can leak a runtime PM reference when switching a persistent GPIO line from input to output if a register update fails. The input does not describe an attacker action or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels that include the arizona GPIO driver should check their versions; affected versions are not specified.