AZL-117812: CVE-2026-142963 affecting package kernel 6.6.161.1-1
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 iiodeviceunregister() access freed memory.
Unregister the device before cleaning up the triggered buffer.
This issue was found by our static analysis tool under development.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel IIO kxsd9 driver, unregister the device before cleaning up the triggered buffer.
Event History
Frequently Asked Questions
What runtime conditions are required for this issue to occur?
The affected path involves the kxsd9 IIO accelerometer driver when an IIO device is removed while a triggered buffer is active. The unsafe condition occurs if the triggered-buffer poll function is freed before iio_device_unregister() completes.
What component should maintainers review first?
Review removal and cleanup handling in the kxsd9 IIO accelerometer driver, specifically the ordering of triggered-buffer cleanup and IIO device unregistration. The device must be unregistered before cleaning up the triggered buffer.
Is there a mitigation if an updated kernel package cannot yet be deployed?
For source-based kernel maintenance, ensure cleanup code calls iio_device_unregister() before freeing the triggered-buffer poll function. The provided information does not identify a configuration-only workaround.