iio: accel: kxcjk-1013: reject duplicate event disable
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b4b491c0832ef90a7a5070e5975bc8427f2049ca · < 3365209e758c845a197211645731f0e393a86012| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: accel: kxcjk-1013: reject duplicate event disable
The IIO core does not filter duplicate writes to the event enable attribute. kxcjk1013_write_event_config() already ignores repeated enable requests, but a repeated disable request still calls kxcjk1013_set_power_state(data, false), 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 ev_enable_state.
From the CVE record · Linux
The Linux kernel's kxcjk-1013 accelerometer driver mishandles repeated writes that disable an IIO event. A repeated disable can drop a runtime PM reference that was not acquired, underflowing the usage count and triggering a warning; this requires a write to the event enable attribute.
Engineers running Linux kernels with the kxcjk-1013 driver should check their kernel; affected versions were not specified.