🔍 CVE-2025-39910

5.5
CVSS Score
MEDIUM
2025-10-01
2026-10-30 13:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 kasan_populate_vmalloc() 함수가 호출자의 GFP 마스크를 무시하고 항상 GFP_KERNEL 플래그를 사용하여 메모리를 할당하는 취약점입니다. 이로 인해 GFP_NOFS나 GFP_NOIO가 필요한 상황에서도 일반 커널 할당이 수행되어, XFS와 같은 파일 시스템 작업 시 데드락(Deadlock)이 발생할 수 있습니다.

💡 쉬운 설명

메모리를 할당할 때 특정 규칙(예: 파일 작업 중에는 다른 작업을 하지 말 것)을 지켜야 하는데, 이를 무시하고 일반적인 방식으로 할당하여 시스템이 멈출 수 있는 문제입니다. 특히 파일 시스템을 사용하는 과정에서 시스템이 응답하지 않는 상태에 빠질 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: mm/vmalloc, mm/kasan: respect gfp mask in kasan_populate_vmalloc() kasan_populate_vmalloc() and its helpers ignore the caller's gfp_mask and always allocate memory using the hardcoded GFP_KERNEL flag. This makes them inconsistent with vmalloc(), which was recently extended to support GFP_NOFS and GFP_NOIO allocations. Page table allocations performed during shadow population also ignore the external gfp_mask. To preserve the intended semantics of GFP_NOFS and GFP_NOIO, wrap the apply_to_page_range() calls into the appropriate memalloc scope. xfs calls vmalloc with GFP_NOFS, so this bug could lead to deadlock. There was a report here https://lkml.kernel.org/r/[email protected] This patch: - Extends kasan_populate_vmalloc() and helpers to take gfp_mask; - Passes gfp_mask down to alloc_pages_bulk() and __get_free_page(); - Enforces GFP_NOFS/NOIO semantics with memalloc_*_save()/restore() around apply_to_page_range(); - Updates vmalloc.c and percpu allocator call sites accordingly.

📍 영향받는 시스템

Linux Kernel (kasan_populate_vmalloc 및 vmalloc 관련 모듈 사용 시스템)

⚔️ 공격 벡터

직접적인 외부 공격보다는 특정 파일 시스템(XFS 등) 작업 중 시스템 자원 할당 규칙 위반으로 인한 서비스 거부(DoS) 유발 가능

🛡️ 대응 방법

커널 패치를 적용하여 kasan_populate_vmalloc()이 gfp_mask를 준수하도록 업데이트된 최신 커널로 업그레이드

🔧 검증 코드

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

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