Vulnerability record
iio: accel: kxsd9: Fix potential use-after-free on removal
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.
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources