🇰🇷 한글 설명
Linux 커널의 Bluetooth L2CAP 프로토콜에서 LE_CONN_REQ 처리 시 채널 모드가 올바르게 설정되지 않는 취약점이 발견되었습니다. 이로 인해 잘못된 응답이 전송되거나, 지연된 채널의 개수 및 식별자 검증 부재로 인해 스택 영역의 Out-of-Bounds(OOB) 쓰기가 발생할 수 있습니다.
💡 쉬운 설명
블루투스 연결 과정에서 데이터 처리 방식이 잘못 설정되어 시스템 메모리의 잘못된 위치에 데이터를 쓰는 오류가 발생할 수 있습니다. 공격자가 이를 악용하면 시스템을 중단시키거나 보안을 위협할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: L2CAP: fix chan mode for LE_CONN_REQ + EXT_FLOWCTL pchan
l2cap_new_connection() sets default value of channel mode to match the
parent channel. l2cap_le_connect_req() left this at the default, and
created L2CAP_MODE_EXT_FLOWCTL channels if listening pchan has that
mode. This causes FLAG_DEFER_SETUP channels to reply to
L2CAP_LE_CONN_REQ with L2CAP_ECRED_CONN_RSP, which is incorrect.
It can also result to stack OOB write (of l2cap_alloc_cid determined
values) in l2cap_ecred_rsp_defer(), as l2cap_le_connect_req() does not
limit maximum number of deferred channels or check for duplicate ident.
Fix by setting chan->mode correctly in l2cap_le_connect_req().
Also check channel mode in l2cap_ecred_rsp_defer(), and do WARN_ON_ONCE
instead of OOB write to make it less brittle.
📍 영향받는 시스템
Linux Kernel (Bluetooth L2CAP 관련 모듈 사용 시스템)
⚔️ 공격 벡터
조작된 L2CAP_LE_CONN_REQ 패킷을 전송하여 메모리 오버플로우 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인