🇰🇷 한글 설명
Linux 커널의 powerpc 아키텍처에서 compound vmemmap 생성 시 addr_pfn 추적 오류가 발견되었습니다. 이로 인해 vmemmap 슬롯이 head 페이지 또는 tail 페이지 매핑 중 잘못된 결정을 내릴 수 있는 취약점이 존재합니다. 이를 해결하기 위해 addr_pfn을 수동으로 증가시키는 대신 현재 vmemmap 주소에서 직접 유도하도록 수정되었습니다.
💡 쉬운 설명
컴퓨터 메모리를 관리하는 과정에서 주소를 계산하는 방식에 오류가 있어, 메모리의 특정 위치를 잘못 인식할 수 있는 문제입니다. 이로 인해 시스템의 메모리 관리 체계에 혼란이 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
powerpc/mm: fix wrong addr_pfn tracking in compound vmemmap population
vmemmap_populate_compound_pages() uses addr_pfn to determine the PFN
offset within a compound page and to decide whether the current vmemmap
slot should be populated as a head page mapping or should reuse a tail
page mapping.
However, addr_pfn is advanced manually in parallel with addr. The loop
itself progresses in vmemmap address space, so each PAGE_SIZE step in addr
covers PAGE_SIZE / sizeof(struct page) struct page slots. Since addr_pfn
is compared against nr_pages in data-PFN units, it should advance by the
same number of PFNs. The existing manual increments do not match that and
therefore do not reliably track the PFN corresponding to the current addr.
As a result, pfn_offset can be computed from the wrong PFN and the code
can make the head/tail decision for the wrong compound-page position.
Fix this by deriving addr_pfn directly from the current vmemmap address
instead of carrying it as loop state.
📍 영향받는 시스템
Linux kernel (powerpc architecture)
⚔️ 공격 벡터
로컬 공격자가 메모리 관리 오류를 악용하여 시스템 권한 상승 또는 메모리 오염 시도 가능
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인