🇰🇷 한글 설명
리눅스 커널의 Bluetooth virtio_bt 드라이버에서 수신 패킷의 헤더 길이를 검증하지 않아 메모리 비초기화 데이터를 읽는 취약점이 존재합니다. 백엔드에서 공급된 길이가 부족할 경우, ACL 또는 ISO 패킷 처리 시 잘못된 메모리 접근이 발생할 수 있습니다.
💡 쉬운 설명
블루투스 드라이버가 데이터의 길이를 제대로 확인하지 않아, 시스템의 민감한 메모리 정보를 외부로 노출시킬 수 있는 결함이 있습니다. 이는 악의적인 백엔드 장치를 통해 공격자가 시스템의 불안정성을 유발하거나 정보를 탈취할 수 있게 합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: virtio_bt: validate rx pkt_type header length
virtbt_rx_handle() reads the leading pkt_type byte from the RX skb
and forwards the remainder to hci_recv_frame() for every
event/ACL/SCO/ISO type, without checking that the remaining payload
is at least the fixed HCI header for that type.
After the preceding patch bounds the backend-supplied used.len to
[1, VIRTBT_RX_BUF_SIZE], a one-byte completion still reaches
hci_recv_frame() with skb->len already pulled to 0. If the byte
happened to be HCI_ACLDATA_PKT, the ACL-vs-ISO classification
fast-path in hci_dev_classify_pkt_type() dereferences
hci_acl_hdr(skb)->handle whenever the HCI device has an active
CIS_LINK, BIS_LINK, or PA_LINK connection, reading two bytes of
uninitialized RX-buffer data. The same hazard exists for every
packet type the driver accepts because none of the switch cases in
virtbt_rx_handle() check skb->len against the per-type minimum HCI
header size before handing the frame to the core.
After stripping pkt_type, require skb->len to cover the fixed
header size for the selected type (event 2, ACL 4, SCO 3, ISO 4)
before calling hci_recv_frame(); drop ratelimited otherwise.
Unknown pkt_type values still take the original kfree_skb() default
path.
Use bt_dev_err_ratelimited() because both the length and pkt_type
values come from an untrusted backend that can otherwise flood the
kernel log.
📍 영향받는 시스템
Linux kernel (virtio_bt 모듈이 활성화된 환경)
⚔️ 공격 벡터
악의적인 백엔드에서 전송하는 길이 정보가 조작된 블루투스 패킷을 수신하여 메모리 비초기화 영역 읽기
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 패킷 길이 검증 로직을 적용합니다.
🔧 검증 코드
출력된 커널 버전이 해당 CVE에 대해 패치가 적용된 안전한 버전인지 공식 보안 공지에서 확인합니다.