iio: chemical: atlas-sensor: fix PM reference leak in buffer postenable
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0e4f336f50debeacd0f81e931e8451f2ae03f685 · < 777e8ebfe6b3fa733694977f0f4cf849e07e925c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: chemical: atlas-sensor: fix PM reference leak in buffer postenable
atlas_buffer_postenable() acquires a runtime PM reference with pm_runtime_resume_and_get() but returns the result of atlas_set_interrupt() directly. If atlas_set_interrupt() fails, the runtime PM reference is leaked and the device can never autosuspend.
Add pm_runtime_put_autosuspend() on the error path to balance the reference.
From the CVE record · Linux
The Linux kernel’s atlas-sensor driver can leak a runtime power-management reference if setting an interrupt fails while enabling the buffer. The device may then never autosuspend. The input does not describe an attacker, authentication requirements, or user interaction.
Engineers running Linux kernels with the atlas-sensor driver should check their kernel version; affected versions are not specified.