Description
In the Linux kernel, the following vulnerability has been resolved: gpio: mpc8xxx: Fix potential use-after-free of IRQ domain GPIO chip cleanup can call the to_irq callback while releasing requested GPIOs. Removing the IRQ domain first leaves that callback using a freed domain, both on removal and after an IRQ request failure. Register domain cleanup before GPIO chip registration so devres removes the chip before freeing the domain. This issue was found by our static analysis tool under development.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
257e10752c13f2698d53e5df1744f4d7e41fdfa7 to < dcfecb8e0746c24450f829685ab4abc3ec964de9affected257e10752c13f2698d53e5df1744f4d7e41fdfa7 to < 6d4d163ac20c4382d9b7997d20eb72412554acadaffected257e10752c13f2698d53e5df1744f4d7e41fdfa7 to < 8c036eff499654a4f109b1a64fc0c1687c81842daffected257e10752c13f2698d53e5df1744f4d7e41fdfa7 to < e1618627070c70b3f7f1380d0dd4c8007c75702faffected257e10752c13f2698d53e5df1744f4d7e41fdfa7 to < 9e4b35c95fede87bad36f68b7ff1eae94ea6b910affected
Linux Linux
Default version status: affected
4.0affected0 to < 4.0unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/dcfecb8e0746c24450f829685ab4abc3ec964de9 ↗
- https://git.kernel.org/stable/c/6d4d163ac20c4382d9b7997d20eb72412554acad ↗
- https://git.kernel.org/stable/c/8c036eff499654a4f109b1a64fc0c1687c81842d ↗
- https://git.kernel.org/stable/c/e1618627070c70b3f7f1380d0dd4c8007c75702f ↗
- https://git.kernel.org/stable/c/9e4b35c95fede87bad36f68b7ff1eae94ea6b910 ↗