🇰🇷 한글 설명
Linux 커널의 sc16is7xx 시리얼 드라이버에서 특수 레지스터 세트 사용 시 FIFO 접근 오류가 발생하는 취약점입니다. 특수 레지스터 모드에서 인터럽트가 발생할 경우, FIFO 읽기용 레지스터(RHR)가 DLL 레지스터로 잘못 매핑되어 데이터 읽기 오류가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 통신 장치가 데이터를 읽는 과정에서 주소를 착각하여 엉뚱한 곳을 읽는 문제입니다. 이로 인해 데이터가 깨지거나 통신 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
serial: sc16is7xx: fix invalid FIFO access with special register set
When enabling access to the special register set, Receiver time-out and
RHR interrupts can happen. In this case, the IRQ handler will try to read
from the FIFO thru the RHR register at address 0x00, but address 0x00 is
mapped to DLL register, resulting in erroneous FIFO reading.
Call graph example:
sc16is7xx_startup(): entry
sc16is7xx_ms_proc(): entry
sc16is7xx_set_termios(): entry
sc16is7xx_set_baud(): DLH/DLL = $009C --> access special register set
sc16is7xx_port_irq() entry --> IIR is 0x0C
sc16is7xx_handle_rx() entry
sc16is7xx_fifo_read(): --> unable to access FIFO (RHR) because it is
mapped to DLL (LCR=LCR_CONF_MODE_A)
sc16is7xx_set_baud(): exit --> Restore access to general register set
Fix the problem by claiming the efr_lock mutex when accessing the Special
register set.
📍 영향받는 시스템
sc16is7xx 드라이버를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
특수 레지스터 세트가 활성화된 상태에서 특정 타이밍에 인터럽트를 유도하여 데이터 읽기 오류 유발
🛡️ 대응 방법
특수 레지스터 세트 접근 시 efr_lock 뮤텍스를 사용하도록 커널 패치 적용
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 수정된 최신 패치 버전인지 확인합니다.