Nixpkgs security tracker

Login with GitHub

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 7 hours ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
iio: adc: ti-ads1119: fix PM reference leak in buffer preenable

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.

Affected products

Linux
  • <f40292fb19399a3c3f82de698023ba87c01e66cf
  • ==6.11
  • =<6.18.*
  • =<6.12.*
  • =<7.1.*
  • <6537f08100189d12bec4975000244e6ac4873c28
  • <6.11
  • =<*
  • <adf4bc07f814da8329278d32600147f5a150938c
  • <ffb2195921c3d629194b9807de589578df9f9cb8