🔍 CVE-2026-31771

8.1
CVSS Score
HIGH
2026-05-01
2026-10-30 13:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 Bluetooth HCI 이벤트 처리에서 페이로드 길이 검증이 수행되기 전에 hci_store_wake_reason() 함수가 호출되어 메모리 범위를 벗어난 접근이 가능한 취약점입니다. 이를 해결하기 위해 wake address 저장 로직을 개별 이벤트 핸들러로 이동하여 각각의 길이 검증 후에만 실행되도록 수정했습니다.

💡 쉬운 설명

Linux의 Bluetooth 기능에서 데이터 유효성을 확인하기 전에 메모리에 접근하려고 할 때 발생하는 문제입니다. 데이터를 먼저 검증한 후에 처리하도록 코드를 수정했습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_event: move wake reason storage into validated event handlers hci_store_wake_reason() is called from hci_event_packet() immediately after stripping the HCI event header but before hci_event_func() enforces the per-event minimum payload length from hci_ev_table. This means a short HCI event frame can reach bacpy() before any bounds check runs. Rather than duplicating skb parsing and per-event length checks inside hci_store_wake_reason(), move wake-address storage into the individual event handlers after their existing event-length validation has succeeded. Convert hci_store_wake_reason() into a small helper that only stores an already-validated bdaddr while the caller holds hci_dev_lock(). Use the same helper after hci_event_func() with a NULL address to preserve the existing unexpected-wake fallback semantics when no validated event handler records a wake address. Annotate the helper with __must_hold(&hdev->lock) and add lockdep_assert_held(&hdev->lock) so future call paths keep the lock contract explicit. Call the helper from hci_conn_request_evt(), hci_conn_complete_evt(), hci_sync_conn_complete_evt(), le_conn_complete_evt(), hci_le_adv_report_evt(), hci_le_ext_adv_report_evt(), hci_le_direct_adv_report_evt(), hci_le_pa_sync_established_evt(), and hci_le_past_received_evt().

📍 영향받는 시스템

Linux kernel 전 버전 (Bluetooth HCI 기능 활성화 시스템)

⚔️ 공격 벡터

조작된 Bluetooth HCI 이벤트 패킷을 전송하여 메모리 범위 벗어난 접근 유발

🛡️ 대응 방법

Linux kernel을 최신 보안 패치가 포함된 버전으로 업그레이드

🔧 검증 코드

설치된 kernel 버전을 확인하고, 배포판의 보안 공지에서 CVE-2026-31771 패치 포함 여부를 확인하세요.

Shell / Script
apt list --installed 2>/dev/null | grep linux-image || rpm -qa 2>/dev/null | grep kernel

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel