🔍 CVE-2024-56611

5.5
CVSS Score
MEDIUM
2024-12-27
2026-10-30 13:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 mm/mempolicy 모듈에서 migrate_to_node() 함수가 메모리 맵(MM)에 최소 하나의 VMA(가상 메모리 영역)가 존재한다고 가정하고 있었습니다. 실제로는 VMA가 없을 수 있어 find_vma()가 NULL을 반환하고, 이를 역참조하여 NULL 포인터 역참조 오류와 커널 패닉이 발생할 수 있습니다. 패치는 find_vma()의 NULL 반환을 올바르게 처리하도록 수정합니다.

💡 쉬운 설명

리눅스 커널이 메모리 영역이 없는 상황을 제대로 처리하지 못해 시스템이 비정상 종료될 수 있는 문제입니다. 이 문제는 특정 시스템 호출을 통해 발생할 수 있으며, 커널 수정으로 해결됩니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: mm/mempolicy: fix migrate_to_node() assuming there is at least one VMA in a MM We currently assume that there is at least one VMA in a MM, which isn't true. So we might end up having find_vma() return NULL, to then de-reference NULL. So properly handle find_vma() returning NULL. This fixes the report: Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 UID: 0 PID: 6021 Comm: syz-executor284 Not tainted 6.12.0-rc7-syzkaller-00187-gf868cd251776 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:migrate_to_node mm/mempolicy.c:1090 [inline] RIP: 0010:do_migrate_pages+0x403/0x6f0 mm/mempolicy.c:1194 Code: ... RSP: 0018:ffffc9000375fd08 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffc9000375fd78 RCX: 0000000000000000 RDX: ffff88807e171300 RSI: dffffc0000000000 RDI: ffff88803390c044 RBP: ffff88807e171428 R08: 0000000000000014 R09: fffffbfff2039ef1 R10: ffffffff901cf78f R11: 0000000000000000 R12: 0000000000000003 R13: ffffc9000375fe90 R14: ffffc9000375fe98 R15: ffffc9000375fdf8 FS: 00005555919e1380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555919e1ca8 CR3: 000000007f12a000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> kernel_migrate_pages+0x5b2/0x750 mm/mempolicy.c:1709 __do_sys_migrate_pages mm/mempolicy.c:1727 [inline] __se_sys_migrate_pages mm/mempolicy.c:1723 [inline] __x64_sys_migrate_pages+0x96/0x100 mm/mempolicy.c:1723 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f [[email protected]: add unlikely()]

📍 영향받는 시스템

Linux 커널 (패치 이전 버전, 특히 6.12-rc 계열 및 관련 안정 버전)

⚔️ 공격 벡터

로컬 사용자가 migrate_pages 시스템 콜을 조작하여 VMA가 없는 메모리 맵 상태에서 함수를 호출함으로써 커널 NULL 역참조를 유발

🛡️ 대응 방법

배포판 제공 최신 커널 업데이트 또는 해당 upstream 패치가 적용된 커널로 업그레이드 후 재부팅

🔧 검증 코드

출력된 커널 버전이 배포판 보안 권고에서 패치된 버전 이상인지 비교하고, 낮다면 커널 업데이트가 필요합니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel