🇰🇷 한글 설명
Linux 커널의 rtw88 WiFi 드라이버에서 NAPI 설정 실패 시 PCI 리소스가 해제되지 않고 남는 리소스 누수 취약점이 발견되었습니다. rtw_pci_probe 함수가 오류 발생 시 PCI 리소스를 파괴하는 과정을 건너뛰어 메모리 및 리소스 누수를 유발합니다.
💡 쉬운 설명
무선 랜 카드를 작동시키려다 오류가 발생했을 때, 사용했던 컴퓨터 자원을 제대로 돌려주지 않고 그대로 방치하는 버그입니다. 이 문제가 반복되면 시스템의 자원이 고갈될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
wifi: rtw88: pci: fix resource leak on failed NAPI setup
rtw_pci_probe() allocates PCI resources through
rtw_pci_setup_resource() before it sets up NAPI. If
rtw_pci_napi_init() fails, the error path jumps straight to
err_pci_declaim and skips rtw_pci_destroy(), leaving the PCI
resources allocated by rtw_pci_setup_resource() behind.
Add a dedicated cleanup label for the NAPI setup failure path so probe
destroys the PCI resources.
The bug was first flagged by an experimental analysis tool we are
developing for kernel memory-management bugs while analyzing current
mainline kernels. The tool is still under development and is not yet
publicly available. Manual inspection confirms that the bug is still
present in v7.1-rc7.
An x86_64 allyesconfig build showed no new warnings. As we do not have a
suitable rtw88 PCI board to test with, no runtime testing was able to be
performed.
📍 영향받는 시스템
Linux kernel (rtw88 driver, v7.1-rc7 포함 이전 버전)
⚔️ 공격 벡터
로컬 시스템에서 드라이버 초기화 실패를 유도하여 리소스 누수 발생 가능
🛡️ 대응 방법
Linux 커널을 최신 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인