🇰🇷 한글 설명
Linux 커널의 PCI 엔드포인트 드라이버(pci-epf-vntb)에서 리소스 해제 과정이 중복되어 발생하는 취약점입니다. 이로 인해 .allow_link 실패 또는 .drop_link 수행 시 커널 페이지 요청 오류(Oops)가 발생하여 시스템 안정성이 저해될 수 있습니다.
💡 쉬운 설명
컴퓨터의 부품을 연결하고 해제하는 과정에서 이미 정리된 자원을 다시 정리하려고 시도하여 시스템이 충돌하는 문제입니다. 이 오류가 발생하면 운영체제가 갑자기 멈추거나 오류 메시지를 내뱉으며 불안정해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
PCI: endpoint: pci-epf-vntb: Remove duplicate resource teardown
epf_ntb_epc_destroy() duplicates the teardown that the caller is
supposed to perform later. This leads to an oops when .allow_link fails
or when .drop_link is performed. The following is an example oops of the
former case:
Unable to handle kernel paging request at virtual address dead000000000108
[...]
[dead000000000108] address between user and kernel address ranges
Internal error: Oops: 0000000096000044 [#1] SMP
[...]
Call trace:
pci_epc_remove_epf+0x78/0xe0 (P)
pci_primary_epc_epf_link+0x88/0xa8
configfs_symlink+0x1f4/0x5a0
vfs_symlink+0x134/0x1d8
do_symlinkat+0x88/0x138
__arm64_sys_symlinkat+0x74/0xe0
[...]
Remove the helper, and drop pci_epc_put(). EPC device refcounting is
tied to the configfs EPC group lifetime, and pci_epc_put() in the
.drop_link path is sufficient.
📍 영향받는 시스템
PCI endpoint(pci-epf-vntb) 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 사용자가 configfs를 통해 특정 PCI 엔드포인트 링크를 생성하거나 해제하는 조작을 통해 발생 가능
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 보안 업데이트 버전인지 확인