🇰🇷 한글 설명
리눅스 커널의 ELF 파일 유효성 검사 과정에서 문자열 테이블 섹션의 유형을 적절히 검증하지 않아 발생하는 취약점입니다. SHT_NULL 또는 SHT_NOBITS 유형의 섹션에 대해 오프셋 검증 없이 접근할 경우, 잘못된 메모리 참조로 인해 경계 외 메모리 접근(Out-of-bounds)이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 실행 파일을 읽을 때 데이터의 위치를 확인하는 과정에서 오류가 발생할 수 있는 문제입니다. 잘못된 형식의 파일을 이용해 시스템의 허용되지 않은 메모리 영역을 건드릴 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
module: validate string table section types
In elf_validity_cache_sechdrs, section sizes and offsets are validated,
unless the section type is SHT_NULL or SHT_NOBITS.
Later, elf_validity_cache_secstrings and elf_validity_cache_index_str
access the section name table (.shstrtab) and symbol string table
(.strtab) headers without first ensuring that their types are
SHT_STRTAB. If a section type is SHT_NULL or SHT_NOBITS, sh_offset has
not been validated and may reference out-of-bounds memory when
dereferenced in elf_validity_cache_secstrings or
elf_validity_cache_strtab.
Validate that both string section headers are of type SHT_STRTAB before
caching them.
📍 영향받는 시스템
Linux Kernel (ELF 유효성 검사 모듈 관련 버전)
⚔️ 공격 벡터
조작된 ELF 형식의 파일을 시스템에 로드하거나 처리하도록 유도하여 메모리 오류 유발
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 문자열 섹션 유형 검증 로직 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인