🔍 CVE-2025-38696

5.5
CVSS Score
MEDIUM
2025-09-04
2026-10-19 21:10
✅ 완료

🇰🇷 한글 설명

Linux kernel MIPS 아키텍처에서 ABI 또는 vDSO가 없는 태스크(예: kthreads)가 stack_top() 함수를 호출할 때 NULL 포인터를 참조하여 커널 패닉이 발생합니다. kunit 테스트 중 발생 가능하며, ABI 포인터 확인 로직 추가로 해결됩니다.

💡 쉬운 설명

MIPS 프로세서 기반 리눅스에서 특정 작업(kthreads)이 메모리 구조에 접근할 때 존재하지 않는 메모리를 건드려 시스템이 다운됩니다. 커널 패치로 메모리 존재 여부를 먼저 확인하면 됩니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: MIPS: Don't crash in stack_top() for tasks without ABI or vDSO Not all tasks have an ABI associated or vDSO mapped, for example kthreads never do. If such a task ever ends up calling stack_top(), it will derefence the NULL ABI pointer and crash. This can for example happen when using kunit: mips_stack_top+0x28/0xc0 arch_pick_mmap_layout+0x190/0x220 kunit_vm_mmap_init+0xf8/0x138 __kunit_add_resource+0x40/0xa8 kunit_vm_mmap+0x88/0xd8 usercopy_test_init+0xb8/0x240 kunit_try_run_case+0x5c/0x1a8 kunit_generic_run_threadfn_adapter+0x28/0x50 kthread+0x118/0x240 ret_from_kernel_thread+0x14/0x1c Only dereference the ABI point if it is set. The GIC page is also included as it is specific to the vDSO. Also move the randomization adjustment into the same conditional.

📍 영향받는 시스템

MIPS 아키텍처 Linux kernel (특히 커널 스레드, kunit 테스트 환경)

⚔️ 공격 벡터

커널 스레드 생성, kunit 가상 메모리 매핑 초기화, stack_top() 함수 호출 시 DoS 유발

🛡️ 대응 방법

Linux kernel MIPS 아키텍처 관련 보안 패치 적용 (stack_top()에서 ABI 포인터 NULL 체크 추가)

🔧 검증 코드

MIPS 프로세서면 커널 버전 표시 (패치 여부 확인 필요), 아니면 'Not MIPS' 메시지로 이 취약점 영향 없음을 확인

Shell / Script
uname -m | grep -q mips && uname -r || echo 'Not MIPS architecture'

📊 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