In the Linux kernel, the following vulnerability has been resolved:
iio: accel: kxsd9: Fix potential use-after-free on removal
Unregistering an IIO device with an active triggered buffer detaches its
poll function. Freeing the poll function first can therefore make
iio_device_unregister() access freed memory.
Unregister the device before cleaning up the triggered buffer.
This issue was found by our static analysis tool under development.