🇰🇷 한글 설명
Linux 커널의 ENA 드라이버에서 프로브(probe) 실패 시 MMIO 읽기 버퍼가 해제되지 않는 메모리 누수 취약점이 발견되었습니다. ena_device_init()을 통해 할당된 DMA 버퍼가 에러 경로에서 적절히 파괴되지 않아 시스템 자원이 낭비될 수 있습니다.
💡 쉬운 설명
장치를 연결하는 과정에서 오류가 발생했을 때, 사용하던 메모리를 제대로 돌려주지 않고 그대로 남겨두는 버그입니다. 이 문제가 반복되면 시스템의 메모리가 조금씩 줄어들 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: ena: fix MMIO read buffer leak on probe failure
ena_device_init() initializes the MMIO read mechanism with
ena_com_mmio_reg_read_request_init(), which allocates a coherent DMA
buffer for MMIO read responses.
The normal removal path releases this buffer through
ena_com_mmio_reg_read_request_destroy(). However, if ena_probe() fails
after ena_device_init() succeeds, the error path destroys the admin
resources and eventually frees ena_dev without destroying the MMIO read
request, leaving the coherent DMA buffer allocated.
Call ena_com_mmio_reg_read_request_destroy() in the probe error path
before releasing the remaining device resources.
This issue was found by manual code inspection.
📍 영향받는 시스템
Linux kernel (ENA driver 사용 환경)
⚔️ 공격 벡터
로컬 공격자가 장치 드라이버의 프로브 과정을 의도적으로 실패시켜 메모리 누수를 유발할 수 있음
🛡️ 대응 방법
Linux 커널을 최신 패치가 적용된 버전으로 업데이트하여 ena_probe() 에러 경로에 버퍼 해제 로직을 적용해야 함
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인합니다.