AZL-117791: CVE-2026-142956 affecting package kernel 6.6.161.1-1
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
Event History
Frequently Asked Questions
What condition is required to trigger the faulty path?
An IIO trigger must have all CONFIG_IIO_CONSUMERS_PER_TRIGGER IRQs already in use, and an additional consumer must attempt to attach a poll function. The affected code logs an error but incorrectly reports success, allowing the extra buffer to be enabled without a poll function.
What is the likely impact on ARM systems?
When the extra buffer is disabled, the kernel clears a bit using a negative bit number and drops a module reference a second time. On arm and arm64, the bitmap operation can access roughly 512 MB beyond the pool bitmap, causing an oops if unmapped memory is reached or corrupting an unrelated memory bit if it is mapped.
How can administrators identify an attempted trigger-exhaustion condition?
The affected attach path prints an error when every IRQ slot for the IIO trigger is in use. That error indicates an additional consumer attempted to attach after the trigger's available IRQ capacity had been exhausted.
What behavior should a corrected kernel provide in this situation?
It should return the error from iio_trigger_get_irq() when no trigger IRQ is free. This prevents the extra consumer's buffer from being enabled without a poll function.