PCI: mediatek-gen3: Prevent leaking IRQ domains when IRQ not found
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 814cceebba9b7d1306b8d49587ffb0e81f7b73af · < 5573c44cb3fd01a9f62d569ae9ac870ef5f0e0ba| No fix yet |
| Linux Linux |
|
|
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".
From the CVE record · Linux
The Linux kernel’s MediaTek Gen3 PCIe driver can leak allocated IRQ domains if fetching the controller’s IRQ fails. The input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the MediaTek Gen3 PCIe driver should check their deployments; affected versions were not provided.