🇰🇷 한글 설명
Linux 커널의 NTFS 드라이버에서 발생한 메모리 누수 취약점입니다. ntfs_non_resident_attr_insert_range 함수에서 오류 발생 시 할당된 hole_rl 메모리를 해제하지 않고 반환하여 메모리가 누수되는 문제가 있었습니다.
💡 쉬운 설명
컴퓨터가 NTFS 방식의 저장 장치를 사용할 때, 특정 오류가 발생하면 사용했던 메모리를 다시 돌려주지 않고 계속 붙잡고 있는 버그입니다. 이 현상이 반복되면 시스템의 메모리가 점차 부족해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ntfs: fix hole runlist memory leak in insert range error path
ntfs_non_resident_attr_insert_range() allocates hole_rl before mapping the
whole runlist. If ntfs_attr_map_whole_runlist() fails, the error path drops
ni->runlist.lock and returns without freeing hole_rl. This leaks memory
of sizeof(*hole_rl) * 2 bytes.
Fix this memory leak by freeing hole_rl before returning from
that error path, matching the later error paths in the same function.
📍 영향받는 시스템
Linux kernel (NTFS driver module)
⚔️ 공격 벡터
로컬 공격자가 특수하게 조작된 NTFS 파일 시스템 구조를 마운트하거나 처리하게 유도하여 메모리 누수 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인