🇰🇷 한글 설명
Linux 커널의 mm/huge_memory 구성 요소에서 디바이스 전용 PMD 다운그레이드 시 pmd_swp_uffd_wp 플래그가 보존되지 않는 취약점이 해결되었습니다. 이로 인해 mprotect() 호출 시 UFFD_WP로 마킹된 디바이스 전용 THP의 비트가 제거되어 스왑 인 시 트랩을 우회할 수 있는 문제가 있었습니다.
💡 쉬운 설명
리눅스 커널의 메모리 관리 과정에서 특정 보안 설정이 누락되어, 공격자가 메모리 보호 기능을 우회할 수 있는 결함이 발견되었습니다. 이 결함은 메모리 스왑 과정에서 보안 감시를 피할 수 있게 만듭니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
mm/huge_memory: preserve pmd_swp_uffd_wp on device-private PMD downgrade
change_non_present_huge_pmd() rewrites a writable device-private PMD swap
entry into a readable one without carrying pmd_swp_uffd_wp() across. The
PTE-level change_softleaf_pte() does this correctly; mirror that here,
matching what copy_huge_pmd() does for the fork path. Without the carry,
a plain mprotect() over a UFFD_WP-marked device-private THP strips the bit
and the trap is bypassed on swap-in.
📍 영향받는 시스템
Linux Kernel (mm/huge_memory 관련 기능 사용 시스템)
⚔️ 공격 벡터
mprotect()를 이용해 특정 메모리 권한을 변경함으로써 UFFD_WP 보안 트랩을 우회하는 방식
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 패치된 최신 릴리스 버전인지 확인