🇰🇷 한글 설명
Linux 커널의 Ceph 구성 요소 내 parse_longname() 함수에서 NUL 종료 문자(NUL-terminated string)가 보장되지 않아 발생하는 취약점입니다. 이로 인해 strrchr() 함수가 메모리 경계를 넘어 잘못된 위치를 참조할 수 있는 위험이 있습니다.
💡 쉬운 설명
컴퓨터가 데이터를 읽을 때 데이터의 끝을 알려주는 표시가 없어서, 데이터가 끝난 뒤의 엉뚱한 메모리 영역까지 읽어버리는 문제입니다. 이로 인해 시스템이 멈추거나 해커가 악성 코드를 실행할 수 있는 통로가 될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
[ceph] parse_longname(): strrchr() expects NUL-terminated string
... and parse_longname() is not guaranteed that. That's the reason
why it uses kmemdup_nul() to build the argument for kstrtou64();
the problem is, kstrtou64() is not the only thing that need it.
Just get a NUL-terminated copy of the entire thing and be done
with that...
📍 영향받는 시스템
NUL 종료 처리가 미흡한 특정 버전의 Linux Kernel (Ceph 모듈 포함)
⚔️ 공격 벡터
조작된 긴 이름을 가진 Ceph 관련 데이터를 커널에 전달하여 메모리 오버런 유도
🛡️ 대응 방법
Ceph 관련 취약점이 패치된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 보안 패치 버전인지 배포판 보안 공지를 통해 확인