iio: light: ltrf216a: fix runtime PM reference leak in error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 83f0bcd40d5cf88870d2f2bb8b97c772b92a3d1f · < c132aef0e757a39036b1d40faf0569f2e343b13e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: light: ltrf216a: fix runtime PM reference leak in error path
ltrf216a_get_lux() acquires a runtime PM reference by calling ltrf216a_set_power_state(data, true). However, if ltrf216a_read_data() fails, the function returns immediately without dropping the reference.
This leaves the runtime PM usage count unbalanced, preventing the device from autosuspending after a failed read.
Fix this by releasing the runtime PM reference before returning from the error path.
From the CVE record · Linux
The Linux kernel's ltrf216a light driver leaks a runtime power-management reference when a light reading fails. This can prevent the device from autosuspending; the input does not describe an attacker scenario or access requirements.
Engineers running Linux kernels with the ltrf216a light driver should check their versions; affected versions were not provided.