CVE-2024-57916: misc: microchip: pci1xxxx: Resolve kernel panic during GPIO IRQ handling
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
misc: microchip: pci1xxxx: Resolve kernel panic during GPIO IRQ handling
Resolve kernel panic caused by improper handling of IRQs while accessing GPIO values. This is done by replacing generic_handle_irq with handle_nested_irq.
The Linux kernel CVE team has assigned CVE-2024-57916 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.1 with commit 1f4d8ae231f47c7d890198cd847055a96482a443 and fixed in 6.1.125 with commit 79aef6187e16b2d32307c8ff610e9e04f7f86e1f Issue introduced in 6.1 with commit 1f4d8ae231f47c7d890198cd847055a96482a443 and fixed in 6.6.72 with commit 25692750c0259c5b65afec467d97201a485e8a00 Issue introduced in 6.1 with commit 1f4d8ae231f47c7d890198cd847055a96482a443 and fixed in 6.12.10 with commit 47d3749ec0cb56b7b98917c190a8c10cb54216fd Issue introduced in 6.1 with commit 1f4d8ae231f47c7d890198cd847055a96482a443 and fixed in 6.13-rc7 with commit 194f9f94a5169547d682e9bbcc5ae6d18a564735
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2024-57916
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/79aef6187e16b2d32307c8ff610e9e04f7f86e1f https://git.kernel.org/stable/c/25692750c0259c5b65afec467d97201a485e8a00 https://git.kernel.org/stable/c/47d3749ec0cb56b7b98917c190a8c10cb54216fd https://git.kernel.org/stable/c/194f9f94a5169547d682e9bbcc5ae6d18a564735