Descrizione
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.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
4.14precedenti alla5.10.261→ aggiornare alla5.10.261o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.212→ aggiornare alla5.15.212o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.178→ aggiornare alla6.1.178o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.145→ aggiornare alla6.6.145o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.97→ aggiornare alla6.12.97o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.39→ aggiornare alla6.18.39o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.1.4→ aggiornare alla7.1.4o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/1fbe8972a39548a633d06d7b03a…
- Patch: git.kernel.org/stable/c/6e6a529d6f779413379b4404c9e…
- Patch: git.kernel.org/stable/c/ce52e494a7555bdae1d990a2654…
- Patch: git.kernel.org/stable/c/df77314b3bedbd9ad5d6f0682f9…
- Patch: git.kernel.org/stable/c/e23da72ef202654a7d5269885c4…
- Patch: git.kernel.org/stable/c/ec7c05eed47d8b15c45380aee7c…
- Patch: git.kernel.org/stable/c/f865a57896bd92d7662eb2818d8…
- Patch: git.kernel.org/stable/c/fe8c701a53c2816cd82301f66c6…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Linux | Linux Kernel | ≥ 4.14 < 5.10.261 | 5.10.261 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.212 | 5.15.212 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.178 | 6.1.178 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.145 | 6.6.145 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.97 | 6.12.97 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.39 | 6.18.39 |
| Linux | Linux Kernel | ≥ 6.19 < 7.1.4 | 7.1.4 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/1fbe8972a39548a633d06d7b03a01b7b119a2c12
- Patchhttps://git.kernel.org/stable/c/6e6a529d6f779413379b4404c9ef6a36c0337225
- Patchhttps://git.kernel.org/stable/c/ce52e494a7555bdae1d990a2654fd7547ef6d986
- Patchhttps://git.kernel.org/stable/c/df77314b3bedbd9ad5d6f0682f98b99e3c5f7e2e
- Patchhttps://git.kernel.org/stable/c/e23da72ef202654a7d5269885c4fa39a8404db76
- Patchhttps://git.kernel.org/stable/c/ec7c05eed47d8b15c45380aee7ca168a82e15035
- Patchhttps://git.kernel.org/stable/c/f865a57896bd92d7662eb2818d8f48872e2cbbc7
- Patchhttps://git.kernel.org/stable/c/fe8c701a53c2816cd82301f66c671d952003c1b0