CVE-2026-63798: irqchip/imgpdc: Fix resource leak, add missing chained handler cleanup on remove
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 irqallocdomaingenericchips() during probe and sets up chained handlers using irqsetchainedhandleranddata(). However, on driver removal, the generic chips are not freed and the chained handlers are not removed.
The generic chips remain on the global gclist 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 IRQDOMAINFLAGDESTROYGC flag in domain->flags, so the core code automatically removes generic chips when irqdomainremove() is called
- Clearing all chained handlers with NULL in pdcintcremove()
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Set IRQ_DOMAIN_FLAG_DESTROY_GC in domain->flags so generic interrupt chip suspend/resume/shutdown callbacks do not run on freed generic chips.
Linux irqdomain IRQ_DOMAIN_FLAG_DESTROY_GC = set in domain->flags
Event History
Frequently Asked Questions
What is the severity of CVE-2026-63798?
CVE-2026-63798 has a medium severity rating of 5.5 according to the CVSS v3.1 score.
What does CVE-2026-63798 affect?
CVE-2026-63798 affects the Linux kernel and involves a resource leak and missing cleanup of chained handlers.
How do I fix CVE-2026-63798?
To fix CVE-2026-63798, ensure that you update to a patched version of the Linux kernel where the vulnerability has been addressed.
What kind of vulnerability is CVE-2026-63798?
CVE-2026-63798 is categorized under the 'Use After Free' vulnerability type.
When was CVE-2026-63798 published?
CVE-2026-63798 was published on July 19, 2026.