Nixpkgs security tracker

Login with GitHub
⚠️ You are using a production deployment that is still only suitable for demo purposes. Any work done in this might be wiped later without notice.

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 3 weeks, 4 days ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
gpio: mt7621: avoid corruption of shared interrupt trigger state

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 other's 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.

Affected products

Linux
  • <1781172526d1092323af443fa03f00e6de560401
  • <877a243006788aaa586b2d087f27c9f3628071b0
  • =<6.6.*
  • =<*
  • <a60a40c9ba30edd06d3fb4215fdf430ed968728e
  • <4.19
  • <d3b9026ef78da3018a7d2c5a9c9d611de6d45c47
  • <207d3ebf36f654a43a934addeb4d6775cb2dd667
  • =<6.18.*
  • =<6.12.*
  • =<7.1.*
  • ==4.19