CVE-2026-63862: PCI: mediatek-gen3: Prevent leaking IRQ domains when IRQ not found
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
PCI: mediatek-gen3: Prevent leaking IRQ domains when IRQ not found
In mtk_pcie_setup_irq(), the IRQ domains are allocated before the controller's IRQ is fetched. If the latter fails, the function directly returns an error, without cleaning up the allocated domains.
Hence, reverse the order so that the IRQ domains are allocated after the controller's IRQ is found.
This was flagged by Sashiko during a review of "[PATCH v6 0/7] PCI:
mediatek-gen3: add power control support".
The Linux kernel CVE team has assigned CVE-2026-63862 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.13 with commit 814cceebba9b7d1306b8d49587ffb0e81f7b73af and fixed in 6.1.175 with commit abd3c1927d33766aef39c4640880e3d2637429c2 Issue introduced in 5.13 with commit 814cceebba9b7d1306b8d49587ffb0e81f7b73af and fixed in 6.6.141 with commit 07a5ecb94768cbf76fe659e9924000e9ced0c8a6 Issue introduced in 5.13 with commit 814cceebba9b7d1306b8d49587ffb0e81f7b73af and fixed in 6.12.91 with commit 946b31b5a699a2760ee52af0055e5ebf29c5f4cb Issue introduced in 5.13 with commit 814cceebba9b7d1306b8d49587ffb0e81f7b73af and fixed in 6.18.33 with commit 0a2d60edc3e57c9512e239ebdfd12204d3368560 Issue introduced in 5.13 with commit 814cceebba9b7d1306b8d49587ffb0e81f7b73af and fixed in 7.0.10 with commit 215d4273347b9010a9deae378b0df79c163f707d Issue introduced in 5.13 with commit 814cceebba9b7d1306b8d49587ffb0e81f7b73af and fixed in 7.1 with commit 5573c44cb3fd01a9f62d569ae9ac870ef5f0e0ba
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-63862
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/pci/controller/pcie-mediatek-gen3.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/abd3c1927d33766aef39c4640880e3d2637429c2 https://git.kernel.org/stable/c/07a5ecb94768cbf76fe659e9924000e9ced0c8a6 https://git.kernel.org/stable/c/946b31b5a699a2760ee52af0055e5ebf29c5f4cb https://git.kernel.org/stable/c/0a2d60edc3e57c9512e239ebdfd12204d3368560 https://git.kernel.org/stable/c/215d4273347b9010a9deae378b0df79c163f707d https://git.kernel.org/stable/c/5573c44cb3fd01a9f62d569ae9ac870ef5f0e0ba