In the Linux kernel, the following vulnerability has been resolved: PCI: qcom-ep: Deinitialize endpoint on remove qcom_pcie_ep_probe() initializes the DesignWare PCIe endpoint with dw_pcie_ep_init(). The probe failure paths call dw_pcie_ep_deinit() to release the corresponding endpoint resources, but the remove path does not perform the matching teardown after a successful probe. As a result, resources initialized by the DesignWare endpoint core can remain allocated when the endpoint controller is removed. Notify endpoint functions about EPC deinitialization and call dw_pcie_ep_deinit() before disabling the controller resources. Keep the existing early return when the link is already disabled since Qualcomm endpoint controllers depend on the host refclk for hardware cleanup. This issue was found by manual code inspection.
https://git.kernel.org/stable/c/fbeb004b09658d9ae54af6951f0220a2ecf5dd7c
https://git.kernel.org/stable/c/ed1d71e41c7b2e755e0ef8e9af9cab9b6b185c4b
https://git.kernel.org/stable/c/a41b466056626b2fb24186d8c6ec1fbff2132ddd
https://git.kernel.org/stable/c/3465674aa848041cc9240e236e2fdf589eea386d