🇰🇷 한글 설명
Linux 커널의 Bluetooth L2CAP 구성 요소에서 l2cap_ecred_connect 함수 호출 시 경계 외 쓰기(out-of-bounds write) 취약점이 발견되었습니다. 특정 순서로 L2CAP 소켓이 연결될 경우 최대 허용치를 초과하는 채널이 생성되어 scid 배열의 범위를 벗어난 메모리 쓰기가 발생할 수 있습니다.
💡 쉬운 설명
블루투스 연결을 처리하는 과정에서 메모리 공간을 잘못 계산하여, 정해진 범위를 넘어선 데이터를 기록하는 오류가 있습니다. 이로 인해 시스템이 불안정해지거나 잘못된 연결 요청이 전송될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: L2CAP: fix out-of-bounds write in l2cap_ecred_connect
l2cap_chan_connect() tries to ensure there are no more than
L2CAP_ECRED_CONN_SCID_MAX pending ECRED channels, so they fit in the
same L2CAP_ECRED_CONN_REQ that l2cap_ecred_connect() constructs.
However, the check only counts deferred channels. If 6 L2CAP sockets
are connected at the same time in order DDDDND (D=deferred,
N=non-deferred), the last can bump the total to max+1. It results to
one __le16 written out of bounds of the scid array, and an invalid
ECRED_CONN_REQ being sent.
Fix by leaving room for the non-deferred pending ECRED channels in the
counting in l2cap_chan_connect(), so the limit can't be exceeded.
Move counting under same critical section where the channel is added.
Although race conditions involving this appear unreachable, it's easier
to see.
Also add WARN_ON_ONCE check in l2cap_ecred_defer_connect() to make this
less brittle.
📍 영향받는 시스템
Linux Kernel (Bluetooth L2CAP stack 포함 버전)
⚔️ 공격 벡터
특수하게 조작된 순서로 L2CAP 연결 요청을 보내는 로컬 또는 원격 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인하십시오.