🇰🇷 한글 설명
Linux 커널의 Bluetooth hci_core 모듈에서 ISO 패킷 큐잉 시 락(lock)을 적절히 유지하지 않아 발생하는 Use-After-Free 취약점입니다. 파편화된 패킷을 큐에 추가하는 과정에서 동시성 제어가 이루어지지 않아 메모리 오염이나 시스템 충돌이 발생할 수 있습니다.
💡 쉬운 설명
블루투스 데이터를 처리하는 과정에서 데이터 목록을 정리하는 규칙이 어긋나, 이미 삭제된 데이터를 다시 사용하려고 시도하는 오류입니다. 이로 인해 컴퓨터 시스템이 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_core: Serialize fragmented ISO packet queueing
The fragmented path in hci_queue_iso() calls __skb_queue_tail() without
holding conn->data_q.lock. The socket lock serializes senders, but the
transmit worker can concurrently remove packets from this queue using
skb_dequeue().
After an insertion saves the old tail pointer, hci_sched_iso() can dequeue
that packet and pass it to the driver. The driver can free the packet
before the insertion resumes and writes to the old tail's next pointer,
causing a use-after-free. Concurrent updates can also corrupt the queue.
KASAN reported:
BUG: KASAN: slab-use-after-free in hci_send_iso+0xc7d/0xe10
Call Trace:
hci_send_iso+0xc7d/0xe10
iso_sock_sendmsg+0x710/0x900
__sys_sendto+0x34a/0x3a0
Allocated by task 86:
__alloc_skb+0xdd/0x820
alloc_skb_with_frags+0x7e/0x770
sock_alloc_send_pskb+0x67a/0x820
bt_skb_sendmsg.constprop.0+0xc0/0x6c0
iso_sock_sendmsg+0x44e/0x900
Freed by task 90:
kmem_cache_free+0xcb/0x3d0
vhci_read+0x33f/0x4d0
vfs_read+0x177/0xa20
Hold the queue lock across the entire fragment batch, as hci_queue_acl()
does, to serialize insertion against dequeue while preserving fragment
ordering.
📍 영향받는 시스템
Linux Kernel (Bluetooth hci_core 모듈을 사용하는 버전)
⚔️ 공격 벡터
로컬 또는 원격에서 조작된 블루투스 ISO 패킷을 전송하여 메모리 레이스 컨디션 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 hci_queue_iso() 함수의 락 메커니즘 수정 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.