In the Linux kernel, the following vulnerability has been resolved:
gpio: mt7621: avoid corruption of shared interrupt trigger state
The bank-shared fields like rising and falling are modified using non-atomic read-modify-write operations. Since every gpio chip instance represents an entire bank of 32 pins, if mediatek_gpio_irq_type() is called concurrently for different IRQs on the same bank a possible overwrite of each others configuration is possible. Thus, protect this state with gpio_generic_lock_irqsave lock in the same way it is handled in irp_chip mediatek_gpio_irq_mask() and mediatek_gpio_irq_unmask() callbacks.