🇰🇷 한글 설명
Linux 커널의 page_pool 구성 요소에서 PP_MAGIC_MASK 설정이 너무 넓게 지정되어 일부 32비트 아키텍처에서 시스템 충돌이 발생하는 취약점입니다. 잘못된 매직 마스크로 인해 일반 커널 포인터를 page_pool 페이지로 오인하여 부팅 시 시스템이 중단될 수 있습니다.
💡 쉬운 설명
컴퓨터의 메모리를 관리하는 규칙이 일부 오래된 방식의 시스템에서 너무 넓게 설정되어, 시스템이 엉뚱한 데이터를 중요한 데이터로 착각해 멈춰버리는 문제입니다. 이로 인해 특정 기기에서 컴퓨터를 켤 때 화면이 멈추거나 꺼질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
page_pool: Fix PP_MAGIC_MASK to avoid crashing on some 32-bit arches
Helge reported that the introduction of PP_MAGIC_MASK let to crashes on
boot on his 32-bit parisc machine. The cause of this is the mask is set
too wide, so the page_pool_page_is_pp() incurs false positives which
crashes the machine.
Just disabling the check in page_pool_is_pp() will lead to the page_pool
code itself malfunctioning; so instead of doing this, this patch changes
the define for PP_DMA_INDEX_BITS to avoid mistaking arbitrary kernel
pointers for page_pool-tagged pages.
The fix relies on the kernel pointers that alias with the pp_magic field
always being above PAGE_OFFSET. With this assumption, we can use the
lowest bit of the value of PAGE_OFFSET as the upper bound of the
PP_DMA_INDEX_MASK, which should avoid the false positives.
Because we cannot rely on PAGE_OFFSET always being a compile-time
constant, nor on it always being >0, we fall back to disabling the
dma_index storage when there are not enough bits available. This leaves
us in the situation we were in before the patch in the Fixes tag, but
only on a subset of architecture configurations. This seems to be the
best we can do until the transition to page types in complete for
page_pool pages.
v2:
- Make sure there's at least 8 bits available and that the PAGE_OFFSET
bit calculation doesn't wrap
📍 영향받는 시스템
PP_MAGIC_MASK 관련 오류가 발생하는 일부 32비트 아키텍처 기반 Linux 커널
⚔️ 공격 벡터
직접적인 원격 공격보다는 특정 아키텍처 환경에서 부팅 시 시스템 가용성을 저해하는 서비스 거부(DoS) 형태의 취약점
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 최신 보안 업데이트 버전인지 확인