🇰🇷 한글 설명
Linux 커널의 ntfs3 파일 시스템에서 로그 재생 시 더티 페이지 테이블을 검증하는 과정에 취약점이 발견되었습니다. 조작된 lcns_follow 필드를 사용하여 페이지 엔트리 범위를 벗어나는 메모리 접근이 가능하며, 이는 메모리 오버런을 유발할 수 있습니다.
💡 쉬운 설명
파일 시스템이 데이터를 복구하는 과정에서 데이터의 크기를 제대로 확인하지 않아 발생하는 문제입니다. 공격자가 특수하게 조작된 파일을 통해 컴퓨터의 메모리 영역을 침범할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
fs/ntfs3: validate dirty page table on log replay
Each DIR_PAGE_ENTRY ends in a page_lcns[] array whose length is the on-disk
lcns_follow field. check_rstbl() validates the table bookkeeping but never
checks that this array fits in the entry, so a crafted lcns_follow lets the
v0->v1 conversion memmove and later replay passes run off the entry.
Add check_dp_table() to reject, right after check_rstbl(), any entry larger
than its size claims via struct_size() (the same expression used to allocate
these entries, so the check is overflow-safe by construction). All consumers
can then trust lcns_follow as the real capacity. This covers every
page_lcns[] access whose index is bounded by the entry itself (the
conversion memmove, the HotFix store via find_dp(), and the self-bounded
scan loops). Accesses whose index comes from the log record need a separate
bound and are handled in a follow-up patch.
📍 영향받는 시스템
Linux kernel (ntfs3 파일 시스템 사용 시)
⚔️ 공격 벡터
조작된 lcns_follow 값을 포함한 NTFS 파일 시스템의 로그 데이터를 통한 메모리 오버런 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 check_dp_table() 검증 로직을 적용해야 합니다.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인합니다.