🇰🇷 한글 설명
Linux 커널의 net/qrtr 구성 요소에서 MHI 전송 시 Use-After-Free(UAF) 취약점이 발견되었습니다. skb가 전송 큐에 추가된 직후 콜백이 호출되어 skb가 해제될 수 있으며, 이로 인해 해제된 메모리에 접근하거나 참조 횟수가 잘못 관리될 위험이 있습니다.
💡 쉬운 설명
데이터를 보내는 과정에서 이미 사용이 끝난 메모리 공간을 다시 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 해커가 시스템 권한을 탈취할 수 있는 통로가 될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: qrtr: Avoid potential use after free in MHI send
It is possible that the MHI ul_callback will be invoked immediately
following the queueing of the skb for transmission, leading to the
callback decrementing the refcount of the associated sk and freeing the
skb.
As such the dereference of skb and the increment of the sk refcount must
happen before the skb is queued, to avoid the skb to be used after free
and potentially the sk to drop its last refcount..
📍 영향받는 시스템
MHI(Mobile Hardware Interface)를 사용하는 Linux 커널 기반 시스템
⚔️ 공격 벡터
특정 네트워크 전송 시나리오를 유도하여 메모리 해제 후 참조(Use-After-Free)를 발생시킴
🛡️ 대응 방법
MHI 전송 관련 패치가 적용된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인