🔍 CVE-2022-48991

8.8
CVSS Score
HIGH
2024-10-21
2026-08-04 10:17
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 khugepaged 구성 요소에서 shmem/file collapse 경로 실행 시 MMU notifier를 호출하지 않는 취약점이 발견되었습니다. 이로 인해 페이지 테이블 엔트리가 제거될 때 보조 MMU(KVM 등)에 알림이 전달되지 않아 페이지 Use-After-Free(UAF)가 발생할 수 있습니다.

💡 쉬운 설명

컴퓨터 메모리를 관리하는 과정에서 사용이 끝난 메모리 영역을 제대로 비워주지 않아 발생하는 문제입니다. 이로 인해 해커가 이미 해제된 메모리 공간에 접근하여 시스템을 공격할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: mm/khugepaged: invoke MMU notifiers in shmem/file collapse paths Any codepath that zaps page table entries must invoke MMU notifiers to ensure that secondary MMUs (like KVM) don't keep accessing pages which aren't mapped anymore. Secondary MMUs don't hold their own references to pages that are mirrored over, so failing to notify them can lead to page use-after-free. I'm marking this as addressing an issue introduced in commit f3f0e1d2150b ("khugepaged: add support of collapse for tmpfs/shmem pages"), but most of the security impact of this only came in commit 27e1f8273113 ("khugepaged: enable collapse pmd for pte-mapped THP"), which actually omitted flushes for the removal of present PTEs, not just for the removal of empty page tables.

📍 영향받는 시스템

khugepaged에서 tmpfs/shmem collapse 기능이 활성화된 리눅스 커널 버전

⚔️ 공격 벡터

특정 메모리 관리 작업(khugepaged collapse)을 유도하여 메모리 사용 후 해제(Use-After-Free) 취약점 악용

🛡️ 대응 방법

해당 취약점이 수정된 최신 리눅스 커널 버전으로 업데이트

🔧 검증 코드

출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel