🇰🇷 한글 설명
Linux 커널의 tegra194 PCI 드라이버에서 PERST# 신호가 두 번 해제될 때 CBB 타임아웃이 발생하는 취약점입니다. 컨트롤러 코어가 전원이 켜지기 전에 DBI 레지스터에 접근하여 하드웨어가 정상적으로 작동하지 않는 문제입니다. 이를 해결하기 위해 레지스터 접근 전 컨트롤러 전원을 먼저 켜도록 호출 순서를 수정했습니다.
💡 쉬운 설명
컴퓨터 부품의 전원이 완전히 켜지기도 전에 명령을 내려서 시스템이 응답하지 않고 멈춰버리는 문제입니다. 전원을 먼저 켠 다음에 명령을 내리도록 순서를 바로잡아야 합니다.
🇺🇸 원문 (English)
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.
📍 영향받는 시스템
Linux kernel (tegra194 PCI driver)
⚔️ 공격 벡터
특정 하드웨어 리셋 신호(PERST#)를 반복적으로 조작하여 시스템 타임아웃 유발
🛡️ 대응 방법
Linux 커널을 최신 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인