🇰🇷 한글 설명
리눅스 커널의 bna 구성 요소에서 사용자 공간의 데이터를 커널 버퍼로 복사할 때 NULL 종료 문자를 보장하지 않는 취약점이 발견되었습니다. 이로 인해 sscanf 함수 사용 시 버퍼 범위를 벗어난 읽기(OOB Read)가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 데이터를 읽을 때 데이터의 끝을 알려주는 표시가 없어서, 정해진 범위를 넘어 옆에 있는 다른 데이터를 몰래 읽을 수 있는 문제입니다. 이로 인해 시스템의 중요한 정보가 유출될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
bna: ensure the copied buf is NUL terminated
Currently, we allocate a nbytes-sized kernel buffer and copy nbytes from
userspace to that buffer. Later, we use sscanf on this buffer but we don't
ensure that the string is terminated inside the buffer, this can lead to
OOB read when using sscanf. Fix this issue by using memdup_user_nul
instead of memdup_user.
📍 영향받는 시스템
Linux Kernel (bna 드라이버를 사용하는 시스템)
⚔️ 공격 벡터
사용자 공간에서 조작된 데이터를 커널 버퍼로 전달하여 메모리 경계를 넘어서는 읽기 유도
🛡️ 대응 방법
memdup_user 대신 memdup_user_nul을 사용하도록 커널 패치 적용 및 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인합니다.