🇰🇷 한글 설명
Linux 커널의 ecryptfs 구성 요소에서 패킷 세트 버퍼 크기를 계산할 때 오류가 발생하는 취약점입니다. 헤더 버전에 따라 실제 사용 가능한 버퍼 크기를 잘못 계산하여 버퍼 오버런이 발생할 수 있습니다.
💡 쉬운 설명
데이터를 읽어오는 과정에서 실제 남은 공간보다 더 많은 데이터를 읽으려고 시도하는 오류입니다. 이로 인해 시스템의 메모리 영역을 침범하여 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ecryptfs: pass packet set buffer size to parser
ecryptfs_parse_packet_set() receives a pointer into the file header, but
it calculates the remaining packet buffer size from PAGE_SIZE - 8. For
version 1 headers the packet set starts later in the header, so this can
overstate the available buffer.
Pass the actual packet set buffer length from the caller and calculate
per-packet limits from the remaining bytes in that buffer. Recompute the
remaining length after consuming a tag 3 packet before parsing the
following tag 11 packet.
📍 영향받는 시스템
ecryptfs 모듈을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
조작된 ecryptfs 패킷을 통해 메모리 버퍼 오버런 유도
🛡️ 대응 방법
ecryptfs 패킷 처리 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 보안 패치가 적용된 최신 버전인지 확인합니다.