🇰🇷 한글 설명
리눅스 커널의 Bluetooth ISO 모듈에서 debugfs가 비활성화된 경우 iso_init() 함수가 조기에 반환되어 iso_inited 상태를 설정하지 못하는 취약점입니다. 이로 인해 iso_init()이 중복 호출되면서 proto_register() 등의 함수가 반복 실행되어 커널의 리스트 구조를 손상시키고 시스템 충돌(Kernel BUG)을 유발할 수 있습니다.
💡 쉬운 설명
블루투스 기능을 초기화하는 과정에서 설정 오류로 인해 똑같은 초기화 작업을 여러 번 반복하게 되는 문제입니다. 이 과정에서 컴퓨터의 핵심 시스템 메모리가 꼬이게 되어 시스템이 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: ISO: Fix multiple init when debugfs is disabled
If bt_debugfs is not created successfully, which happens if either
CONFIG_DEBUG_FS or CONFIG_DEBUG_FS_ALLOW_ALL is unset, then iso_init()
returns early and does not set iso_inited to true. This means that a
subsequent call to iso_init() will result in duplicate calls to
proto_register(), bt_sock_register(), etc.
With CONFIG_LIST_HARDENED and CONFIG_BUG_ON_DATA_CORRUPTION enabled, the
duplicate call to proto_register() triggers this BUG():
list_add double add: new=ffffffffc0b280d0, prev=ffffffffbab56250,
next=ffffffffc0b280d0.
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:35!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP PTI
CPU: 2 PID: 887 Comm: bluetoothd Not tainted 6.10.11-1-ao-desktop #1
RIP: 0010:__list_add_valid_or_report+0x9a/0xa0
...
__list_add_valid_or_report+0x9a/0xa0
proto_register+0x2b5/0x340
iso_init+0x23/0x150 [bluetooth]
set_iso_socket_func+0x68/0x1b0 [bluetooth]
kmem_cache_free+0x308/0x330
hci_sock_sendmsg+0x990/0x9e0 [bluetooth]
__sock_sendmsg+0x7b/0x80
sock_write_iter+0x9a/0x110
do_iter_readv_writev+0x11d/0x220
vfs_writev+0x180/0x3e0
do_writev+0xca/0x100
...
This change removes the early return. The check for iso_debugfs being
NULL was unnecessary, it is always NULL when iso_inited is false.
📍 영향받는 시스템
CONFIG_DEBUG_FS 또는 CONFIG_DEBUG_FS_ALLOW_ALL이 해제된 리눅스 커널 (예: 6.10.11-1-ao-desktop 등)
⚔️ 공격 벡터
로컬 공격자가 블루투스 스택을 사용하는 특정 시스템 호출을 유도하여 커널 패닉을 발생시킬 수 있음
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 리눅스 커널로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전인지 배포판 보안 공지를 통해 확인하십시오.