🇰🇷 한글 설명
Linux 커널의 OrangeFS 구성 요소에서 클라이언트 디버그 마스크를 파싱할 때 앞부분의 공백을 건너뛰지 않아 발생하는 취약점입니다. 버퍼 크기를 계산할 때와 실제 데이터를 읽을 때의 공백 처리 방식이 달라, 할당된 메모리 범위를 초과하여 데이터를 쓰는 버퍼 오버플로우가 발생할 수 있습니다.
💡 쉬운 설명
프로그램이 데이터를 담을 그릇을 만들 때, 실제 들어올 데이터의 크기를 잘못 계산하여 그릇보다 더 많은 데이터를 억지로 밀어 넣는 문제입니다. 이로 인해 시스템의 중요한 메모리 영역이 망가질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
orangefs: skip leading spaces before parsing client debug masks
orangefs_prepare_cdm_array() sizes each client debug keyword buffer
with strcspn(cds_head, " "), but then parses the keyword with %s. The
%s conversion skips leading whitespace, while strcspn() does not.
If a client debug entry starts with a space, the allocation can be sized
for an empty keyword while sscanf() copies the following non-empty token.
This can write past the end of the allocated keyword buffer.
Skip leading spaces before computing the keyword length so the allocation
matches the string parsed by sscanf().
📍 영향받는 시스템
OrangeFS를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
클라이언트 디버그 엔트리 설정 시 문자열 앞에 공백을 삽입하여 메모리 오버플로우 유도
🛡️ 대응 방법
OrangeFS 관련 버그가 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 취약점이 해결된 패치 버전인지 확인합니다.