🇰🇷 한글 설명
Linux 커널의 NTB(Non-Transparent Bridge) epf 모듈에서 BAR_PEER_SPAD와 BAR_CONFIG가 동일한 PCI BAR를 공유할 때 발생하는 취약점입니다. 모듈 제거 과정에서 이미 해제된 메모리 영역에 대해 오프셋을 포함하여 중복으로 pci_iounmap()을 호출함으로써 커널 경고(Kernel Warning)를 유발합니다.
💡 쉬운 설명
컴퓨터 부품을 제거하는 과정에서 이미 정리된 메모리 주소를 다시 정리하려고 시도하여 시스템에 경고 메시지를 띄우는 오류입니다. 이는 시스템의 안정성을 해칠 수 있는 소프트웨어적 결함입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
NTB: epf: Avoid pci_iounmap() with offset when PEER_SPAD and CONFIG share BAR
When BAR_PEER_SPAD and BAR_CONFIG share one PCI BAR, the module teardown
path ends up calling pci_iounmap() on the same iomem with some offset,
which is unnecessary and triggers a kernel warning like the following:
Trying to vunmap() nonexistent vm area (0000000069a5ffe8)
WARNING: mm/vmalloc.c:3470 at vunmap+0x58/0x68, CPU#5: modprobe/2937
[...]
Call trace:
vunmap+0x58/0x68 (P)
iounmap+0x34/0x48
pci_iounmap+0x2c/0x40
ntb_epf_pci_remove+0x44/0x80 [ntb_hw_epf]
pci_device_remove+0x48/0xf8
device_remove+0x50/0x88
device_release_driver_internal+0x1c8/0x228
driver_detach+0x50/0xb0
bus_remove_driver+0x74/0x100
driver_unregister+0x34/0x68
pci_unregister_driver+0x34/0xa0
ntb_epf_pci_driver_exit+0x14/0xfe0 [ntb_hw_epf]
[...]
Fix it by unmapping only when PEER_SPAD and CONFIG use difference bars.
📍 영향받는 시스템
Linux kernel (NTB epf module using shared PCI BAR)
⚔️ 공격 벡터
Local (커널 모듈 제거 시 발생하는 로컬 시스템 오류)
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.