2024-12-29 03:03:44 +00:00

33 lines
4.3 KiB
JSON

{
"id": "CVE-2024-53152",
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"published": "2024-12-24T12:15:23.353",
"lastModified": "2024-12-24T12:15:23.353",
"vulnStatus": "Awaiting Analysis",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: tegra194: Move controller cleanups to pex_ep_event_pex_rst_deassert()\n\nCurrently, the endpoint cleanup function dw_pcie_ep_cleanup() and EPF\ndeinit notify function pci_epc_deinit_notify() are called during the\nexecution of pex_ep_event_pex_rst_assert() i.e., when the host has asserted\nPERST#. But quickly after this step, refclk will also be disabled by the\nhost.\n\nAll of the tegra194 endpoint SoCs supported as of now depend on the refclk\nfrom the host for keeping the controller operational. Due to this\nlimitation, any access to the hardware registers in the absence of refclk\nwill result in a whole endpoint crash. Unfortunately, most of the\ncontroller cleanups require accessing the hardware registers (like eDMA\ncleanup performed in dw_pcie_ep_cleanup(), etc...). So these cleanup\nfunctions can cause the crash in the endpoint SoC once host asserts PERST#.\n\nOne way to address this issue is by generating the refclk in the endpoint\nitself and not depending on the host. But that is not always possible as\nsome of the endpoint designs do require the endpoint to consume refclk from\nthe host.\n\nThus, fix this crash by moving the controller cleanups to the start of\nthe pex_ep_event_pex_rst_deassert() function. This function is called\nwhenever the host has deasserted PERST# and it is guaranteed that the\nrefclk would be active at this point. So at the start of this function\n(after enabling resources) the controller cleanup can be performed. Once\nfinished, rest of the code execution for PERST# deassert can continue as\nusual."
},
{
"lang": "es",
"value": "En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: PCI: tegra194: Mover las desinfecciones del controlador a pex_ep_event_pex_rst_deassert(). Actualmente, la funci\u00f3n de desinfecci\u00f3n de endpoints dw_pcie_ep_cleanup() y la funci\u00f3n de notificaci\u00f3n deinit de EPF pci_epc_deinit_notify() se llaman durante la ejecuci\u00f3n de pex_ep_event_pex_rst_assert(), es decir , cuando el anfitri\u00f3n tiene afirm\u00f3 PREST#. Pero poco despu\u00e9s de este paso, el host tambi\u00e9n desactivar\u00e1 refclk. Todos los SoC de endpoint tegra194 admitidos a partir de ahora dependen de la refclk del host para mantener el controlador operativo. Debido a esta limitaci\u00f3n, cualquier acceso a los registros de hardware en ausencia de refclk resultar\u00e1 en una falla completa del endpoint. Desafortunadamente, la mayor\u00eda de las desinfecciones del controlador requieren acceder a los registros de hardware (como la desinfecci\u00f3n eDMA realizada en dw_pcie_ep_cleanup(), etc...). Por lo tanto, estas funciones de desinfecci\u00f3n pueden provocar el bloqueo del SoC del endpoint una vez que el host afirma el n\u00famero PREST. Una forma de abordar este problema es generando el refclk en el propio endpoint y sin depender del host. Pero eso no siempre es posible ya que algunos de los dise\u00f1os de terminales requieren que el terminal consuma refclk del host. Por lo tanto, solucione este bloqueo moviendo las desinfecciones del controlador al inicio de la funci\u00f3n pex_ep_event_pex_rst_deassert(). Esta funci\u00f3n se llama siempre que el host ha anulado PERST# y se garantiza que refclk estar\u00e1 activo en este punto. Entonces, al inicio de esta funci\u00f3n (despu\u00e9s de habilitar los recursos), se puede realizar la desinfecci\u00f3n del controlador. Una vez finalizado, el resto de la ejecuci\u00f3n del c\u00f3digo para la desactivaci\u00f3n de PERST# puede continuar como de costumbre."
}
],
"metrics": {},
"references": [
{
"url": "https://git.kernel.org/stable/c/40e2125381dc11379112485e3eefdd25c6df5375",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/70212c2300971506e986d95000d2745529cac9d7",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/72034050ccf4202cd6558b0afd2474f756ea3b9b",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
]
}