CVE-2026-64461 PUBLISHED

PCI: mediatek: Fix IRQ domain leak when port fails to enable

Assigner: Linux
Reserved: 19.07.2026 Published: 25.07.2026 Updated: 25.07.2026

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

PCI: mediatek: Fix IRQ domain leak when port fails to enable

When mtk_pcie_enable_port() fails, mtk_pcie_port_free() removes the port from pcie->ports and frees the port structure. However, the IRQ domains set up earlier by mtk_pcie_init_irq_domain() are never freed.

Fix this by refactoring mtk_pcie_irq_teardown() into a per-port helper, mtk_pcie_irq_teardown_port(), and calling it from mtk_pcie_setup() when mtk_pcie_enable_port() fails. Since the IRQ teardown must only happen in the probe error path (during resume, child devices may have active MSI mappings and the NOIRQ context prohibits sleeping locks), mtk_pcie_enable_port() is changed to return an error code so callers can distinguish the two paths and act accordingly.

This issue was reported by Sashiko while reviewing the EcoNet EN7528 SoC support series.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from b099631df160ec608cd6147f4d20a8042567a5b8 to e23da72ef202654a7d5269885c4fa39a8404db76 (excl.)
  • affected from b099631df160ec608cd6147f4d20a8042567a5b8 to ec7c05eed47d8b15c45380aee7ca168a82e15035 (excl.)
  • affected from b099631df160ec608cd6147f4d20a8042567a5b8 to 1fbe8972a39548a633d06d7b03a01b7b119a2c12 (excl.)
  • affected from b099631df160ec608cd6147f4d20a8042567a5b8 to fe8c701a53c2816cd82301f66c671d952003c1b0 (excl.)
  • affected from b099631df160ec608cd6147f4d20a8042567a5b8 to ce52e494a7555bdae1d990a2654fd7547ef6d986 (excl.)
  • affected from b099631df160ec608cd6147f4d20a8042567a5b8 to 6e6a529d6f779413379b4404c9ef6a36c0337225 (excl.)
  • affected from b099631df160ec608cd6147f4d20a8042567a5b8 to df77314b3bedbd9ad5d6f0682f98b99e3c5f7e2e (excl.)
  • affected from b099631df160ec608cd6147f4d20a8042567a5b8 to f865a57896bd92d7662eb2818d8f48872e2cbbc7 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 4.14 is affected
  • unaffected from 0 to 4.14 (excl.)
  • unaffected from 5.10.261 to 5.10.* (incl.)
  • unaffected from 5.15.212 to 5.15.* (incl.)
  • unaffected from 6.1.178 to 6.1.* (incl.)
  • unaffected from 6.6.145 to 6.6.* (incl.)
  • unaffected from 6.12.97 to 6.12.* (incl.)
  • unaffected from 6.18.39 to 6.18.* (incl.)
  • unaffected from 7.1.4 to 7.1.* (incl.)
  • unaffected from 7.2-rc1 to * (incl.)

References