В ядре Linux устранена следующая уязвимость:
PCI: tegra194: исправлен тайм-аут CBB, вызванный доступом к DBI перед включением питания ядра. Когда PERST# сбрасывается дважды (утверждение -> снятие подтверждения -> утверждение -> снятие подтверждения),
тайм-аут CBB (Control Backbone) происходит при смещении регистра DBI 0x8bc.
(PCIE_MISC_CONTROL_1_OFF). Это происходит потому, что pci_epc_deinit_notify()
и dw_pcie_ep_cleanup() вызываются перед включением функции reset_control_deassert().
на ядре контроллера.
Цепочка вызовов, вызывающая таймаут:
pex_ep_event_pex_rst_deassert()
pci_epc_deinit_notify()
pci_epf_test_epc_deinit()
pci_epf_test_clear_bar()
pci_epc_clear_bar()
dw_pcie_ep_clear_bar()
__dw_pcie_ep_reset_bar()
dw_pcie_dbi_ro_wr_en() <- Доступ к регистру 0x8bc DBI
reset_control_deassert(pcie->core_rst) <- Включение ядра ЗДЕСЬ
Регистры DBI, включая PCIE_MISC_CONTROL_1_OFF (0x8bc), предназначены только для
доступен после включения ядра контроллера через
reset_control_deassert (pcie->core_rst). Доступ к ним до этого момента
приводит к тайм-ауту CBB, поскольку оборудование еще не работает. Исправьте это, переместив pci_epc_deinit_notify() и dw_pcie_ep_cleanup() в
после сброса_control_deassert(pcie->core_rst), гарантируя, что контроллер
полностью включен до того, как произойдет доступ к регистру DBI.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: PCI: tegra194: Fix CBB timeout caused by DBI access before core power-on When PERST# is deasserted twice (assert -> deassert -> assert -> deassert), a CBB (Control Backbone) timeout occurs at DBI register offset 0x8bc (PCIE_MISC_CONTROL_1_OFF). This happens because pci_epc_deinit_notify() and dw_pcie_ep_cleanup() are called before reset_control_deassert() powers on the controller core. The call chain that causes the timeout: pex_ep_event_pex_rst_deassert() pci_epc_deinit_notify() pci_epf_test_epc_deinit() pci_epf_test_clear_bar() pci_epc_clear_bar() dw_pcie_ep_clear_bar() __dw_pcie_ep_reset_bar() dw_pcie_dbi_ro_wr_en() <- Accesses 0x8bc DBI register reset_control_deassert(pcie->core_rst) <- Core powered on HERE The DBI registers, including PCIE_MISC_CONTROL_1_OFF (0x8bc), are only accessible after the controller core is powered on via reset_control_deassert(pcie->core_rst). Accessing them before this point results in a CBB timeout because the hardware is not yet operational. Fix this by moving pci_epc_deinit_notify() and dw_pcie_ep_cleanup() to after reset_control_deassert(pcie->core_rst), ensuring the controller is fully powered on before any DBI register accesses occur.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.11.11
|
6.12
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.12.2
|
6.12.91
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.33
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.10
|