🇰🇷 한글 설명
Linux 커널의 Designware PCI Endpoint 드라이버에서 BAR(Base Address Register) 크기나 플래그를 변경할 때 발생하는 취약점입니다. BAR 크기를 기존 설정과 다르게 변경할 경우, 주소 변환 범위가 실제 BAR 크기보다 작아져 호스트가 허용되지 않은 메모리 영역에 접근할 수 있는 문제가 발생합니다.
💡 쉬운 설명
컴퓨터 부품이 사용하는 메모리 주소 범위를 설정할 때, 설정값이 잘못 바뀌면 원래 접근하면 안 되는 다른 메모리 영역까지 읽을 수 있게 되는 보안 구멍입니다. 이로 인해 중요한 데이터가 유출될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
PCI: dwc: ep: Prevent changing BAR size/flags in pci_epc_set_bar()
In commit 4284c88fff0e ("PCI: designware-ep: Allow pci_epc_set_bar() update
inbound map address") set_bar() was modified to support dynamically
changing the backing physical address of a BAR that was already configured.
This means that set_bar() can be called twice, without ever calling
clear_bar() (as calling clear_bar() would clear the BAR's PCI address
assigned by the host).
This can only be done if the new BAR size/flags does not differ from the
existing BAR configuration. Add these missing checks.
If we allow set_bar() to set e.g. a new BAR size that differs from the
existing BAR size, the new address translation range will be smaller than
the BAR size already determined by the host, which would mean that a read
past the new BAR size would pass the iATU untranslated, which could allow
the host to read memory not belonging to the new struct pci_epf_bar.
While at it, add comments which clarifies the support for dynamically
changing the physical address of a BAR. (Which was also missing.)
📍 영향받는 시스템
Designware PCI Endpoint(dwc: ep)를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
호스트 시스템이 PCI Endpoint의 BAR 설정을 동적으로 변경하여 허용되지 않은 메모리 주소로 읽기/쓰기 시도
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 취약점이 해결된 패치 버전인지 확인합니다.