🇰🇷 한글 설명
Linux 커널의 CAN isotp 모듈에서 isotp_sendmsg() 함수 호출 중 tx.buf에 대한 Use-After-Free 취약점이 발견되었습니다. 신호에 의해 대기 상태가 중단될 경우, 데이터 전송이 완료되지 않은 상태에서 메모리가 해제되어 시스템 불안정이나 권한 상승을 초래할 수 있습니다.
💡 쉬운 설명
데이터를 보내는 도중에 갑자기 메모리 공간을 지워버려서 발생하는 오류입니다. 이로 인해 컴퓨터 시스템이 멈추거나 해커가 시스템을 제어할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
can: isotp: fix tx.buf use-after-free in isotp_sendmsg()
isotp_sendmsg() uses only cmpxchg() on so->tx.state to serialize access
to so->tx.buf. isotp_release() waits for ISOTP_IDLE via
wait_event_interruptible() and then calls kfree(so->tx.buf).
If a signal interrupts the wait_event_interruptible() inside close()
while tx.state is ISOTP_SENDING, the loop exits early and release
proceeds to force ISOTP_SHUTDOWN and continues to kfree(so->tx.buf)
while sendmsg may still be reading so->tx.buf for the final CAN frame
in isotp_fill_dataframe().
The so->tx.buf can be allocated once when the standard tx.buf length needs
to be extended. Move the kfree() of this potentially extended tx.buf to
sk_destruct time when either isotp_sendmsg() and isotp_release() are done.
📍 영향받는 시스템
Linux Kernel (CAN isotp 모듈을 사용하는 시스템)
⚔️ 공격 벡터
특정 시그널을 유도하여 데이터 전송 프로세스를 강제로 중단시키는 방식
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 최신 패치 버전인지 확인하십시오.