iio: adc: ti-ads1119: fix PM reference leak in buffer preenable
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: adc: ti-ads1119: fix PM reference leak in buffer preenable
ads1119_triggered_buffer_preenable() resumes the device with pm_runtime_resume_and_get() before starting a conversion.
If i2c_smbus_write_byte() fails, the function returns the error directly and leaves the runtime PM usage counter elevated. The matching postdisable callback is not called when preenable fails, so the reference is leaked and the device may remain runtime-active indefinitely.
Store the I2C transfer result in ret and drop the runtime PM reference on failure before returning the error.
From the CVE record · Linux
The Linux kernel’s ti-ads1119 ADC driver leaks a runtime power-management reference if an I2C write fails while enabling the buffer. The device may remain runtime-active indefinitely; the input does not describe an attacker path or authentication or user-interaction requirements.
Engineers running Linux kernels with the ti-ads1119 ADC driver should check their installations; affected versions are not specified.