iio: pressure: mpl115: fix runtime PM leak on read error
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: pressure: mpl115: fix runtime PM leak on read error
mpl115_read_raw() takes a runtime PM reference with pm_runtime_get_sync() before reading the processed pressure or raw temperature, but on the read error path it returns without calling pm_runtime_put_autosuspend(). Each failed read therefore leaks a runtime PM reference and prevents the device from autosuspending.
Drop the reference before checking the return value so both the success and error paths are balanced.
From the CVE record · Linux
The Linux kernel’s mpl115 pressure driver leaks a runtime power-management reference when a pressure or temperature read fails. Repeated failed reads can prevent the device from autosuspending; the input does not specify an attacker, access requirements, or user interaction.
Engineers running Linux kernels with the mpl115 pressure driver should check whether their kernel includes the fix; affected versions are not specified.