🇰🇷 한글 설명
Linux 커널의 nouveau 드라이버에서 aperture 제거 실패 시 nvkm_device가 해제되지 않고 누수되는 취약점이 발견되었습니다. 이로 인해 nvkm_device 래퍼와 pci_enable_device() 참조가 메모리에 남게 됩니다.
💡 쉬운 설명
그래픽 카드 드라이버가 작동 중에 오류가 발생하면, 사용하던 메모리 자원을 제대로 돌려주지 않고 계속 붙잡고 있는 문제입니다. 이 현상이 반복되면 시스템의 메모리가 점차 부족해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau: fix nvkm_device leak on aperture removal failure
When aperture_remove_conflicting_pci_devices() fails during probe, the
error path returns directly without unwinding the nvkm_device that was
just allocated by nvkm_device_pci_new(). This leaks both the device
wrapper and the pci_enable_device() reference taken inside it.
Jump to the existing fail_nvkm label so nvkm_device_del() runs and
balances both. The leak was introduced when the intermediate
nvkm_device_del() between detection and aperture removal was dropped
in favor of creating the pci device once.
📍 영향받는 시스템
Linux kernel (nouveau driver 포함 버전)
⚔️ 공격 벡터
로컬 공격자가 특정 PCI 장치 구성 오류를 유도하여 메모리 누수를 발생시킴
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인