In the Linux kernel, the following vulnerability has been resolved: iio: trigger: Return an error when the trigger has no free irq iio_trigger_attach_poll_func() prints an error when all CONFIG_IIO_CONSUMERS_PER_TRIGGER irqs of the trigger are in use, but returns 0. The buffer of the extra consumer is enabled without a poll function. Disabling that buffer calls clear_bit() with a negative bit number and drops a module reference for the second time. On arm and arm64 the clear_bit() goes about 512 MB past the pool bitmap. That is an oops if the address is not mapped, and a bit cleared in unrelated memory if it is. Return the error from iio_trigger_get_irq().
https://git.kernel.org/stable/c/dff701806ab6252f6a0fccba880c47cd09602625
https://git.kernel.org/stable/c/c90eab7a4c252a0f3eafeb666dce0f4c93b9f88f
https://git.kernel.org/stable/c/8622258bb57e2bbd987b4a84ec6a0efbe9585c67
https://git.kernel.org/stable/c/5b3594b6b51d0438ed0ae288a805c84937957bbf
https://git.kernel.org/stable/c/56ea28f8252dfb8db4c49a6f662aacf274f307af
https://git.kernel.org/stable/c/0ee790d688606c5afae55afd083f5264e0d489d4