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

CVE-2026-63798
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.13 % · percentile 2 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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()

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected b6ef9161e43ad58c3824bd76dc87716276f0cd70 < 8176773dfceae7978b01c20b233693e072053700 ; affected b6ef9161e43ad58c3824bd76dc87716276f0cd70 < c2c7733101bb8c0b29ac9ee41073eaf602821a59 ; affected b6ef9161e43ad58c3824bd76dc87716276f0cd70 < 83d7ec14b0938ad8cae008058fd6f912f4a9a312 ; affected b6ef9161e43ad58c3824bd76dc87716276f0cd70 < 44567537a2623dcd2b4018a7f043cf8069579e5d ; affected b6ef9161e43ad58c3824bd76dc87716276f0cd70 < 41826e5297e67cd96a0a46fde06a5069a8ce436a ; affected b6ef9161e43ad58c3824bd76dc87716276f0cd70 < b3a3831b2eb884641906fc5e46207b205b6aea13
Linux · Linuxaffected 3.12 ; unaffected 0 < 3.12 ; unaffected 5.10.260 ≤ 5.10.* ; unaffected 5.15.211 ≤ 5.15.* ; unaffected 6.1.177 ≤ 6.1.* ; unaffected 6.6.144 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD