🇰🇷 한글 설명
Linux 커널의 rapidio 드라이버에서 발생한 취약점으로, riocm_ch_send() 함수가 사용자 공간에서 전달된 데이터의 충분성을 검증하지 않아 발생합니다. 이로 인해 할당된 메모리 범위를 벗어난 영역에 데이터를 쓰는 힙 오버라이트(Heap Overwrite)가 발생할 수 있습니다.
💡 쉬운 설명
프로그램이 데이터를 저장할 공간보다 더 많은 데이터를 입력받아 옆에 있는 다른 데이터를 덮어쓸 수 있는 문제입니다. 이로 인해 시스템이 고장 나거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drivers/rapidio/rio_cm.c: prevent possible heap overwrite
In
riocm_cdev_ioctl(RIO_CM_CHAN_SEND)
-> cm_chan_msg_send()
-> riocm_ch_send()
cm_chan_msg_send() checks that userspace didn't send too much data but
riocm_ch_send() failed to check that userspace sent sufficient data. The
result is that riocm_ch_send() can write to fields in the rio_ch_chan_hdr
which were outside the bounds of the space which cm_chan_msg_send()
allocated.
Address this by teaching riocm_ch_send() to check that the entire
rio_ch_chan_hdr was copied in from userspace.
📍 영향받는 시스템
Linux kernel (rapidio driver 포함 버전)
⚔️ 공격 벡터
특수하게 조작된 데이터를 ioctl 시스템 호출을 통해 전달하여 메모리 오버플로우 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인