CVE-2026-142960: iio: imu: kmx61: reject duplicate event disable
In the Linux kernel, the following vulnerability has been resolved:
iio: imu: kmx61: reject duplicate event disable
The IIO core does not filter duplicate writes to the event enable attribute. kmx61writeeventconfig() already ignores repeated enable requests, but a repeated disable request still calls kmx61setpowerstate(data, false, KMX61ACC), dropping a runtime PM reference that was not acquired for this request. This can underflow the runtime PM usage count and trigger a "Runtime PM usage count underflow" warning.
Return early when the requested state already matches evenablestate.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In kmx61_write_event_config(), return early when the requested state already matches ev_enable_state so a repeated disable does not call kmx61_set_power_state(data, false, KMX61_ACC).
Event History
Frequently Asked Questions
What condition is required to trigger the runtime PM usage-count underflow?
A caller must write a duplicate disable request to the KMX61 IIO event-enable attribute when the event is already disabled. The IIO core does not filter these duplicate writes, so the driver can release a runtime PM reference that was not acquired for that request.
How can administrators identify that this issue has occurred?
The described observable symptom is a "Runtime PM usage count underflow" warning. Systems using the KMX61 IIO driver should check kernel logs for that warning, particularly after repeated event-disable writes.
Is there a workaround if the updated driver is not yet available?
Avoid issuing repeated disable writes to the KMX61 event-enable attribute. Ensure tooling or applications only request a disable when the event is currently enabled.