Skip to contentSkip to conversation

CVE-2026-63798: irqchip/imgpdc: Fix resource leak, add missing chained handler cleanup on remove

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

irqchip/imgpdc: Fix resource leak, add missing chained handler cleanup on remove

The driver allocates domain generic chips using irq_alloc_domain_generic_chips() during probe and sets up chained handlers using irq_set_chained_handler_and_data(). However, on driver removal, the generic chips are not freed and the chained handlers are not removed.

The generic chips remain on the global gc_list and may later be accessed by generic interrupt chip suspend, resume, or shutdown callbacks after the driver has been removed, potentially resulting in a use-after-free and kernel crash.

The chained handlers that were installed in probe for peripheral and syswake interrupts are also left dangling, which can lead to spurious interrupts accessing freed memory.

Fix these issues by:

- Setting IRQ_DOMAIN_FLAG_DESTROY_GC flag in domain->flags, so the core code automatically removes generic chips when irq_domain_remove() is called

- Clearing all chained handlers with NULL in pdc_intc_remove()

The Linux kernel CVE team has assigned CVE-2026-63798 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.12 with commit b6ef9161e43ad58c3824bd76dc87716276f0cd70 and fixed in 5.10.260 with commit 8176773dfceae7978b01c20b233693e072053700
	Issue introduced in 3.12 with commit b6ef9161e43ad58c3824bd76dc87716276f0cd70 and fixed in 5.15.211 with commit c2c7733101bb8c0b29ac9ee41073eaf602821a59
	Issue introduced in 3.12 with commit b6ef9161e43ad58c3824bd76dc87716276f0cd70 and fixed in 6.1.177 with commit 83d7ec14b0938ad8cae008058fd6f912f4a9a312
	Issue introduced in 3.12 with commit b6ef9161e43ad58c3824bd76dc87716276f0cd70 and fixed in 6.6.144 with commit 44567537a2623dcd2b4018a7f043cf8069579e5d
	Issue introduced in 3.12 with commit b6ef9161e43ad58c3824bd76dc87716276f0cd70 and fixed in 6.12.95 with commit 41826e5297e67cd96a0a46fde06a5069a8ce436a
	Issue introduced in 3.12 with commit b6ef9161e43ad58c3824bd76dc87716276f0cd70 and fixed in 6.18.38 with commit b3a3831b2eb884641906fc5e46207b205b6aea13
	Issue introduced in 3.12 with commit b6ef9161e43ad58c3824bd76dc87716276f0cd70 and fixed in 7.1.3 with commit 0405a65e4ebd9eac13a765f9f02ac05851ca5421
	Issue introduced in 3.12 with commit b6ef9161e43ad58c3824bd76dc87716276f0cd70 and fixed in 7.2-rc1 with commit 37738fdf2ab1e504d1c63ce5bc0aeb6452d8f057

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-2026-63798

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/irqchip/irq-imgpdc.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/8176773dfceae7978b01c20b233693e072053700
	https://git.kernel.org/stable/c/c2c7733101bb8c0b29ac9ee41073eaf602821a59
	https://git.kernel.org/stable/c/83d7ec14b0938ad8cae008058fd6f912f4a9a312
	https://git.kernel.org/stable/c/44567537a2623dcd2b4018a7f043cf8069579e5d
	https://git.kernel.org/stable/c/41826e5297e67cd96a0a46fde06a5069a8ce436a
	https://git.kernel.org/stable/c/b3a3831b2eb884641906fc5e46207b205b6aea13
	https://git.kernel.org/stable/c/0405a65e4ebd9eac13a765f9f02ac05851ca5421
	https://git.kernel.org/stable/c/37738fdf2ab1e504d1c63ce5bc0aeb6452d8f057