🇰🇷 한글 설명
Linux 커널의 Bluetooth ISO 프로토콜 구현에서 hci_get_route 호출 시 iso_pi 필드에 대한 데이터 경합(Data-race) 취약점이 발견되었습니다. lock_sock()을 보유하지 않은 상태에서 소켓의 목적지 및 출발지 정보를 참조하여, connect()나 setsockopt() 호출 시 데이터가 동시에 수정될 수 있습니다.
💡 쉬운 설명
블루투스 연결을 처리하는 과정에서 여러 작업이 동시에 같은 정보를 수정하려고 할 때 충돌이 발생하는 문제입니다. 이로 인해 시스템이 예기치 않게 동작하거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: ISO: Fix data-race on iso_pi fields in hci_get_route calls
iso_connect_bis(), iso_connect_cis(), iso_listen_bis(), and
iso_conn_big_sync() call hci_get_route() using iso_pi(sk)->dst,
iso_pi(sk)->src, and iso_pi(sk)->src_type without holding lock_sock().
These fields may be modified concurrently by connect() or setsockopt()
on the same socket, resulting in data-races reported by KCSAN.
Fix this by snapshotting the required fields under lock_sock() before
calling hci_get_route().
BUG: KCSAN: data-race in memcmp+0x45/0xb0
race at unknown origin, with read to 0xffff8880122135cf of 1 bytes
by task 333 on cpu 1:
memcmp+0x45/0xb0
hci_get_route+0x27e/0x490
iso_connect_cis+0x4c/0xa10
iso_sock_connect+0x60e/0xb30
__sys_connect_file+0xbd/0xe0
__sys_connect+0xe0/0x110
__x64_sys_connect+0x40/0x50
x64_sys_call+0xcad/0x1c60
do_syscall_64+0x133/0x590
entry_SYSCALL_64_after_hwframe+0x77/0x7f
📍 영향받는 시스템
Linux kernel (Bluetooth ISO implementation)
⚔️ 공격 벡터
로컬 사용자가 특수하게 조작된 소켓 옵션이나 연결 요청을 통해 데이터 경합을 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 hci_get_route 호출 전 lock_sock()을 통해 필드를 스냅샷 처리해야 함
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인