In the Linux kernel, the following vulnerability has been resolved: iio: gyro: bmg160: reject duplicate event disable The IIO core does not filter duplicate writes to the event enable attribute. bmg160_write_event_config() already ignores repeated enable requests, but a repeated disable request still calls bmg160_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.
https://git.kernel.org/stable/c/f898069c933259c7f4461a9bd380111e30239cbe
https://git.kernel.org/stable/c/d0c8bd5d18a492d64d05482f4b1700e14df7ff84
https://git.kernel.org/stable/c/84e8ce1fb690be4b4ee092b501348cf56435a6c4
https://git.kernel.org/stable/c/3b20ae4582d9b8aefe2c6aed94e40fe531c41e50
https://git.kernel.org/stable/c/2c07497e23b911e3df75d88d738f45d23025b318
https://git.kernel.org/stable/c/1b99242f0d00470363776a6eddf5606ae42308cf