🇰🇷 한글 설명
리눅스 커널의 블루투스 MGMT 계층에서 광고 데이터 TLV를 검증할 때 발생하는 취약점입니다. 데이터 필드 길이를 확인하기 전에 데이터 타입을 먼저 검사하여, 버퍼 범위를 벗어난 메모리를 읽게 되는 Out-of-bounds 읽기 오류가 발생할 수 있습니다.
💡 쉬운 설명
블루투스 신호를 보낼 때 사용하는 데이터 형식을 검사하는 과정에서, 정해진 범위를 넘어서는 잘못된 데이터를 읽어버리는 보안 결함입니다. 이로 인해 시스템 정보가 유출되거나 프로그램이 비정상적으로 종료될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: MGMT: validate advertising TLV before type checks
tlv_data_is_valid() reads each advertising data field length from
data[i], then inspects data[i + 1] for managed EIR types before
checking that the current field still fits inside the supplied buffer.
A malformed field whose length byte is the last byte of the buffer can
therefore make the parser read one byte past the advertising data.
KASAN reported the following when a malformed MGMT_OP_ADD_ADVERTISING
request reached that path:
BUG: KASAN: vmalloc-out-of-bounds in tlv_data_is_valid()
Read of size 1
Call trace:
tlv_data_is_valid()
add_advertising()
hci_mgmt_cmd()
hci_sock_sendmsg()
Move the existing element-length check before any type-octet inspection
so each non-empty element is proven to contain its type byte before the
parser looks at data[i + 1].
📍 영향받는 시스템
취약점이 해결되기 전 버전의 리눅스 커널 (Bluetooth MGMT 기능 사용 시)
⚔️ 공격 벡터
조작된 MGMT_OP_ADD_ADVERTISING 요청을 통해 블루투스 스택에 잘못된 길이의 데이터를 전송
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 패치된 최신 버전인지 확인합니다.