🇰🇷 한글 설명
Linux 커널의 Bluetooth RFCOMM 프로토콜에서 MTU 값을 검증하지 않아 발생하는 취약점입니다. 원격 피어로부터 MTU 값이 0인 프레임을 받으면 무한 루프에 빠지게 되며, 이 과정에서 0 크기의 skb가 무한 생성되어 시스템 메모리를 고갈시킵니다.
💡 쉬운 설명
블루투스 연결 과정에서 상대방이 데이터 크기를 0으로 설정해 보내면, 컴퓨터가 이를 처리하려다 무한 반복 작업에 빠집니다. 이로 인해 컴퓨터의 메모리가 모두 사용되어 시스템이 멈추거나 다운될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: RFCOMM: Validate MTU in rfcomm_apply_pn() to prevent infinite loop
rfcomm_apply_pn() accepts the MTU value from a remote PN (Parameter
Negotiation) frame without checking for zero. When the remote peer
sends an MTU of zero, d->mtu is set to 0. This causes the sendmsg
path to enter an infinite loop when fragmenting data, as each fragment
has size == min_t(size_t, len, 0) == 0, so the remaining length never
decreases. The infinite allocation of zero-length skbs exhausts all
system memory.
Fix by clamping d->mtu to RFCOMM_DEFAULT_MTU when the negotiated
value is zero, consistent with the initial value assigned in
rfcomm_dlc_alloc().
📍 영향받는 시스템
MTU 검증 로직이 수정되기 전의 Linux Kernel (Bluetooth RFCOMM 모듈 사용 시)
⚔️ 공격 벡터
악의적인 블루투스 장치가 MTU 값이 0으로 설정된 RFCOMM Parameter Negotiation 프레임을 전송
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 rfcomm_apply_pn() 함수의 MTU 검증 로직을 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인