CVE-2026-142956: iio: trigger: Return an error when the trigger has no free irq
In the Linux kernel, the following vulnerability has been resolved:
iio: trigger: Return an error when the trigger has no free irq
iiotriggerattachpollfunc() prints an error when all CONFIGIIOCONSUMERSPERTRIGGER 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 clearbit() with a negative bit number and drops a module reference for the second time. On arm and arm64 the clearbit() 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 iiotriggergetirq().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel IIO trigger code, return the error from iio_trigger_get_irq() when the trigger has no free IRQ.
Event History
Frequently Asked Questions
What condition is required to trigger the issue?
All CONFIG_IIO_CONSUMERS_PER_TRIGGER IRQs for an IIO trigger must already be in use, and an additional consumer buffer must then be enabled. The extra consumer is enabled without a poll function because the attach operation incorrectly returns success.
What are the likely effects on affected systems?
Disabling the extra consumer buffer calls clear_bit() with a negative bit number and drops a module reference a second time. On arm and arm64, this can access roughly 512 MB beyond the pool bitmap, causing an oops when unmapped or clearing a bit in unrelated memory when mapped.
How can this be mitigated before applying the fix?
Avoid configuring more than CONFIG_IIO_CONSUMERS_PER_TRIGGER consumers on the same IIO trigger. Do not enable an additional buffer once all trigger IRQ slots are in use.