🇰🇷 한글 설명
Linux 커널의 Bluetooth MGMT 모듈에서 mgmt_hci_cmd_sync() 함수가 전달된 파라미터 길이를 검증하지 않아 잘못된 params_len 값이 들어오면 실제 버퍼 범위를 벗어난 영역에서 데이터를 복사할 수 있는 문제입니다. 이 패치는 파라미터 크기가 전체 데이터 크기와 일치하는지 확인하여 잘못된 명령을 거부합니다.
💡 쉬운 설명
블루투스 관리 기능에서 명령 데이터의 크기를 제대로 확인하지 않아 잘못된 크기 정보가 들어오면 메모리의 다른 영역을 읽을 수 있습니다. 커널 업데이트로 잘못된 명령을 차단하면 이 문제가 해결됩니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: MGMT: reject malformed HCI_CMD_SYNC commands
In 'mgmt_hci_cmd_sync()', check whether the size of parameters passed
in 'struct mgmt_cp_hci_cmd_sync' matches the total size of the data
(i.e. 'sizeof(struct mgmt_cp_hci_cmd_sync)' plus trailing bytes).
Otherwise, large invalid 'params_len' will cause 'hci_cmd_sync_alloc()'
to do 'skb_put_data()' from an area beyond the one actually passed to
'mgmt_hci_cmd_sync()'.
📍 영향받는 시스템
패치 이전의 Linux 커널 (Bluetooth MGMT 기능이 활성화된 시스템)
⚔️ 공격 벡터
로컬 사용자가 잘못된 params_len 값을 포함한 HCI_CMD_SYNC 관리 명령을 전송하여 버퍼 범위를 벗어난 메모리 접근을 유발
🛡️ 대응 방법
배포판 제공 최신 Linux 커널로 업데이트하거나 해당 upstream 패치를 적용
🔧 검증 코드
출력된 커널 버전을 배포판의 보안 권고문과 대조하여 CVE-2025-38128 패치가 포함된 버전인지 확인 (패치 포함 여부는 배포판 changelog에서 확인)