🇰🇷 한글 설명
Linux 커널의 usb gadget printer 드라이버 내 printer_read() 함수에서 무한 루프가 발생하는 취약점입니다. 데이터 복사 시 사용되는 변수가 복사 실패 시 0을 반환하는 copy_to_user()의 특성으로 인해, 사용자 버퍼가 쓰기 불가능한 상태일 때 루프가 종료되지 않고 무한히 반복될 수 있습니다.
💡 쉬운 설명
프린터 기능을 사용하는 장치에서 데이터를 읽어올 때, 오류가 발생해도 멈추지 않고 계속해서 같은 작업을 반복하는 버그가 있습니다. 이로 인해 시스템 자원이 낭비되거나 시스템이 멈출 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: printer: fix infinite loop in printer_read()
printer_read() uses the same variable for the requested copy size and
the number of bytes actually copied to user space. copy_to_user()
returns the number of bytes not copied, so when it fails to copy
anything, the computed copied length becomes zero.
In that case len, buf, current_rx_bytes and current_rx_buf are left
unchanged. If RX data is available and the user buffer remains
unwritable, the read loop can repeat indefinitely.
Track the copied length separately and return -EFAULT, or the number of
bytes already copied, if an iteration makes no progress.
📍 영향받는 시스템
Linux kernel (usb gadget printer driver 포함 버전)
⚔️ 공격 벡터
악의적으로 구성된 사용자 공간 버퍼를 통해 데이터를 읽으려는 시도로 무한 루프 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인
💻 영향받는 소프트웨어
NVIDIA vGPU Guest Driver for Linux