🇰🇷 한글 설명
Linux 커널의 iwlegacy 드라이버에서 PCI 장치 제거 시 EEPROM 데이터 메모리가 해제되지 않는 메모리 누수 취약점이 발견되었습니다. il3945_pci_probe() 함수가 할당한 메모리가 장치 제거 경로인 il3945_pci_remove()에서 적절히 해제되지 않아 발생합니다.
💡 쉬운 설명
무선 랜카드를 컴퓨터에서 제거할 때, 사용하던 메모리를 시스템에 돌려주지 않고 계속 붙잡고 있는 문제입니다. 이 현상이 반복되면 시스템의 메모리가 점차 부족해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
wifi: iwlegacy: 3945: free EEPROM data on remove
il3945_pci_probe() calls il_eeprom_init(), which allocates memory for
the EEPROM data. The probe failure paths release this allocation with
il_eeprom_free(), but the remove path does not free it after a
successful probe.
As a result, the EEPROM data is leaked when the PCI device is removed.
Free the EEPROM data in il3945_pci_remove() before releasing the
mac80211 hardware structure.
This issue was found by manual code inspection.
📍 영향받는 시스템
Linux kernel (iwlegacy driver, il3945_pci module)
⚔️ 공격 벡터
로컬 공격자가 PCI 장치를 반복적으로 연결 및 제거하여 시스템 메모리 고갈 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 il3945_pci_remove() 내 메모리 해제 로직 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인