🇰🇷 한글 설명
Linux 커널의 Bluetooth L2CAP 프로토콜 내 l2cap_le_connect_rsp 함수에서 Use-After-Free(UAF) 취약점이 발견되었습니다. 채널을 조회한 후 참조를 유지하지 않은 상태에서 원격 연결 해제가 발생하면, 이미 해제된 채널 메모리에 접근하여 시스템 오류나 권한 상승을 유발할 수 있습니다.
💡 쉬운 설명
블루투스 연결 과정에서 데이터가 저장된 메모리 공간이 갑자기 사라졌음에도 불구하고, 시스템이 이를 계속 사용하려고 시도할 때 발생하는 문제입니다. 이로 인해 기기가 멈추거나 해커가 시스템 제어권을 얻을 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: L2CAP: fix UAF in l2cap_le_connect_rsp
l2cap_le_connect_rsp() obtains a channel via
__l2cap_get_chan_by_ident() but neither holds a reference nor uses
l2cap_chan_hold_unless_zero() before locking and operating on it.
A concurrent l2cap_chan_del() triggered by a remote disconnect can
free the channel between the lookup and l2cap_chan_lock(), causing
a use-after-free.
The BR/EDR counterpart l2cap_connect_rsp() and the sibling handler
l2cap_le_command_rej() already use l2cap_chan_hold_unless_zero()
to safely hold a reference, but l2cap_le_connect_rsp() was left
unprotected.
Fix by adding l2cap_chan_hold_unless_zero() after the ident lookup
and l2cap_chan_put() on the exit path, consistent with other L2CAP
response handlers.
📍 영향받는 시스템
Linux Kernel (Bluetooth L2CAP 모듈 사용 시스템)
⚔️ 공격 벡터
원격의 블루투스 장치를 통한 의도적인 연결 해제 요청 (Remote Disconnect)
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.