CVE-2026-99973: PCI: qcom-ep: Deinitialize endpoint on remove
In the Linux kernel, the following vulnerability has been resolved:
PCI: qcom-ep: Deinitialize endpoint on remove
qcompcieepprobe() initializes the DesignWare PCIe endpoint with dwpcieepinit(). The probe failure paths call dwpcieepdeinit() 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 dwpcieepdeinit() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Qualcomm PCIe endpoint remove path, call dw_pcie_ep_deinit() before disabling controller resources so endpoint resources are released; notify endpoint functions about EPC deinitialization.
Event History
Frequently Asked Questions
When does the resource leak occur?
It occurs after qcom_pcie_ep_probe() has successfully initialized the DesignWare PCIe endpoint and the Qualcomm endpoint controller is later removed. The prior remove path disabled controller resources without calling the matching dw_pcie_ep_deinit() teardown.
Are probe failures affected in the same way?
No. The described probe failure paths already call dw_pcie_ep_deinit() to release endpoint resources. The missing cleanup was specific to removal after a successful probe.
What behavior does the fix add during controller removal?
The fix notifies endpoint functions that the EPC is being deinitialized and calls dw_pcie_ep_deinit() before controller resources are disabled. It preserves the existing early return when the link is already disabled because Qualcomm endpoint controllers require the host reference clock for hardware cleanup.