iio: light: apds9306: fix PM reference leak in apds9306_read_data()
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.18.527.2.57.3In the Linux kernel, the following vulnerability has been resolved:
iio: light: apds9306: fix PM reference leak in apds9306_read_data()
apds9306_read_data() calls pm_runtime_resume_and_get() but several error paths return directly without calling pm_runtime_put_autosuspend(), leaking the runtime PM reference and preventing the device from autosuspending.
Use PM_RUNTIME_ACQUIRE_AUTOSUSPEND() and PM_RUNTIME_ACQUIRE_ERR() to automatically handle runtime PM reference release on all return paths.
From the CVE record · Linux
The Linux kernel’s apds9306 light driver can leak a runtime power-management reference when apds9306_read_data() returns on certain error paths, preventing the device from autosuspending. The input does not describe an attacker, exploitation conditions, or required interaction.
Anyone running Linux with the apds9306 light driver should check their kernel; affected versions are not specified.