🇰🇷 한글 설명
Linux 커널의 Bluetooth ISO 프로토콜 구현 중 iso_conn_ready 함수에서 소켓(sk) 참조 시 동기화 문제가 발생합니다. 소켓을 잠그거나 참조 횟수를 유지하지 않은 상태에서 접근할 경우, 다른 프로세스에 의해 소켓이 해제되어 Use-After-Free(UAF) 취약점이 발생할 수 있습니다.
💡 쉬운 설명
블루투스 연결을 처리하는 과정에서 데이터가 저장된 메모리 공간이 갑자기 사라지는 오류가 발생할 수 있습니다. 이로 인해 시스템이 충돌하거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: ISO: hold sk properly in iso_conn_ready
sk deref in iso_conn_ready must be done either under conn->lock, or
holding a refcount, to avoid concurrent close. conn->sk is currently
accessed without either:
[Task 1] [Task 2]
iso_sock_release
iso_conn_ready
sk = conn->sk
lock_sock(sk)
conn->sk = NULL
lock_sock(sk)
release_sock(sk)
iso_sock_kill(sk)
UAF on sk deref
Fix possible UAF by holding sk refcount in iso_conn_ready(). Also
recheck after lock_sock that the socket is still valid. Adjust locking
so conn->sk is cleared only under lock_sock.
📍 영향받는 시스템
Bluetooth ISO 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
특수하게 조작된 블루투스 연결 요청을 통해 메모리 해제 후 재사용(UAF) 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인