🇰🇷 한글 설명
리눅스 커널의 블루투스 모듈에서 모듈 언로드 시 iso_exit() 함수가 호출되지 않는 취약점이 발견되었습니다. 이로 인해 등록된 proto 구조체가 유효하지 않은 상태로 남게 되어, 모듈을 다시 로드할 때 커널 리스트 손상 및 시스템 충돌(Kernel BUG)을 유발할 수 있습니다.
💡 쉬운 설명
블루투스 기능을 껐다가 다시 켤 때, 컴퓨터가 이전 기록을 제대로 지우지 못해 오류가 발생하는 문제입니다. 이 과정에서 시스템이 갑자기 멈추거나 비정상적으로 작동할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: Call iso_exit() on module unload
If iso_init() has been called, iso_exit() must be called on module
unload. Without that, the struct proto that iso_init() registered with
proto_register() becomes invalid, which could cause unpredictable
problems later. In my case, with CONFIG_LIST_HARDENED and
CONFIG_BUG_ON_DATA_CORRUPTION enabled, loading the module again usually
triggers this BUG():
list_add corruption. next->prev should be prev (ffffffffb5355fd0),
but was 0000000000000068. (next=ffffffffc0a010d0).
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:29!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP PTI
CPU: 1 PID: 4159 Comm: modprobe Not tainted 6.10.11-4+bt2-ao-desktop #1
RIP: 0010:__list_add_valid_or_report+0x61/0xa0
...
__list_add_valid_or_report+0x61/0xa0
proto_register+0x299/0x320
hci_sock_init+0x16/0xc0 [bluetooth]
bt_init+0x68/0xd0 [bluetooth]
__pfx_bt_init+0x10/0x10 [bluetooth]
do_one_initcall+0x80/0x2f0
do_init_module+0x8b/0x230
__do_sys_init_module+0x15f/0x190
do_syscall_64+0x68/0x110
...
📍 영향받는 시스템
Linux kernel (Bluetooth module 관련 버전)
⚔️ 공격 벡터
로컬 사용자가 블루투스 모듈을 반복적으로 로드 및 언로드하여 커널 패닉 유도
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 최신 패치 버전인지 확인하십시오.