🇰🇷 한글 설명
Linux 커널의 Bluetooth HCI UART 구성 중 오류가 발생할 경우 SRCU percpu 메모리가 해제되지 않고 누수되는 취약점입니다. 장치 초기화 실패 시 HCI_UNREGISTER 플래그가 설정되지 않아 메모리 정리 프로세스가 건너뛰어지는 것이 원인입니다.
💡 쉬운 설명
블루투스 장치를 연결하는 과정에서 오류가 생기면 컴퓨터의 메모리가 제대로 비워지지 않고 계속 쌓이는 문제입니다. 이 현상이 반복되면 시스템의 메모리가 부족해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: fix memory leak in error path of hci_alloc_dev()
Early failures in Bluetooth HCI UART configuration leak SRCU percpu
memory.
When device initialization fails before hci_register_dev() completes,
the HCI_UNREGISTER flag is never set. As a result, when the device
reference count reaches zero, bt_host_release() evaluates this flag as
false and falls back to a direct kfree(hdev).
Because hci_release_dev() is bypassed, the SRCU struct initialized
early in hci_alloc_dev() is never cleaned up, resulting in a leak of
percpu memory.
Fix the leak by explicitly calling cleanup_srcu_struct() in the
fallback (unregistered) branch of bt_host_release() before freeing
the device.
📍 영향받는 시스템
Linux Kernel (Bluetooth HCI UART 구성 관련 버전)
⚔️ 공격 벡터
로컬 공격자가 블루투스 장치 초기화 오류를 반복적으로 유도하여 메모리 고갈 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인