🇰🇷 한글 설명
Linux 커널의 mmc sdio_uart 드라이버에서 포트 테이블이 가득 찼을 때 송신 FIFO 메모리가 해제되지 않는 메모리 누수 취약점이 발견되었습니다. sdio_uart_add_port 함수가 슬롯 할당에 실패하더라도 이미 할당된 FIFO를 해제하지 않아 발생하는 문제입니다.
💡 쉬운 설명
장치를 연결할 때 메모리를 빌려온 뒤, 자리가 부족해 연결에 실패하면 빌린 메모리를 돌려주지 않고 그대로 두는 버그입니다. 이 문제가 반복되면 시스템의 메모리가 조금씩 줄어들어 결국 성능 저하나 시스템 중단이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
mmc: sdio_uart: fix xmit_fifo leak when the port table is full
sdio_uart_add_port() allocates the transmit fifo before claiming a
slot in sdio_uart_table[]. When all UART_NR slots are taken, it
returns -EBUSY with the fifo still allocated, but the probe error
path only kfree()s the port, leaking the transmit fifo.
Free the fifo in the failure path of sdio_uart_add_port() itself so
the function retains nothing on error.
📍 영향받는 시스템
Linux kernel (mmc sdio_uart driver 포함 버전)
⚔️ 공격 벡터
로컬 공격자가 SDIO 인터페이스를 통해 반복적으로 포트 추가를 시도하여 메모리 누수를 유발할 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.