🇰🇷 한글 설명
Linux 커널의 libertas_tf 드라이버에서 lbtf_free_adapter() 함수 호출 시 타이머 콜백이 완료되기 전에 명령 버퍼를 먼저 해제하여 발생하는 Use-After-Free(UAF) 취약점입니다. 타이머 삭제를 먼저 수행하여 실행 중인 콜백이 완료된 후 메모리를 해제하도록 수정되었습니다.
💡 쉬운 설명
컴퓨터가 사용 중인 메모리를 미리 지워버려서, 나중에 그 메모리를 다시 쓰려고 할 때 오류가 발생하는 문제입니다. 타이머 작업이 완전히 끝난 것을 확인한 뒤에 메모리를 지우도록 순서를 바꾸어 해결했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
wifi: libertas_tf: fix UAF in lbtf_free_adapter()
lbtf_free_adapter() calls lbtf_free_cmd_buffer() to free the command
buffers before calling timer_delete_sync() to wait for the command
timer callback. If the timer callback (command_timer_fn) is already
running when lbtf_free_cmd_buffer() frees the command array, the
callback dereferences priv->cur_cmd->cmdbuf which points to freed
memory.
Swap the order so that timer_delete_sync() runs first, ensuring any
in-flight callback has completed before the command buffers are freed.
📍 영향받는 시스템
Linux kernel (libertas_tf driver)
⚔️ 공격 벡터
특정 네트워크 타이머 콜백을 유도하여 해제된 메모리에 접근하게 만드는 로컬 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인
💻 영향받는 소프트웨어
NVIDIA Cloud Gaming Guest Driver for Linux