CVE-2024-53153: PCI: qcom-ep: Move controller cleanups to qcom_pcie_perst_deassert()
In the Linux kernel, the following vulnerability has been resolved:
PCI: qcom-ep: Move controller cleanups to qcompcieperstdeassert()
Currently, the endpoint cleanup function dwpcieepcleanup() and EPF deinit notify function pciepcdeinitnotify() are called during the execution of qcompcieperstassert() i.e., when the host has asserted PERST#. But quickly after this step, refclk will also be disabled by the host.
All of the Qcom endpoint SoCs supported as of now depend on the refclk from the host for keeping the controller operational. Due to this limitation, any access to the hardware registers in the absence of refclk will result in a whole endpoint crash. Unfortunately, most of the controller cleanups require accessing the hardware registers (like eDMA cleanup performed in dwpcieepcleanup(), powering down MHI EPF etc...). So these cleanup functions are currently causing the crash in the endpoint SoC once host asserts PERST#.
One way to address this issue is by generating the refclk in the endpoint itself and not depending on the host. But that is not always possible as some of the endpoint designs do require the endpoint to consume refclk from the host (as I was told by the Qcom engineers).
Thus, fix this crash by moving the controller cleanups to the start of the qcompcieperstdeassert() function. qcompcieperstdeassert() is called whenever the host has deasserted PERST# and it is guaranteed that the refclk would be active at this point. So at the start of this function (after enabling resources), the controller cleanup can be performed. Once finished, rest of the code execution for PERST# deassert can continue as usual.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-53153?
The severity of CVE-2024-53153 is classified as low, as it primarily involves cleanups rather than a critical security flaw.
How do I fix CVE-2024-53153?
To fix CVE-2024-53153, ensure that you update your Linux kernel to the latest version that includes the patch for this vulnerability.
Which systems are affected by CVE-2024-53153?
CVE-2024-53153 affects the Linux kernel, particularly systems utilizing the PCI Qualcomm endpoint controller.
What impact does CVE-2024-53153 have on system performance?
CVE-2024-53153 has minimal impact on system performance as it involves code cleanups without changing the functionality of the kernel.
Is CVE-2024-53153 exploit applicable?
CVE-2024-53153 is not known to have public exploits, making it less likely to be targeted by attackers.