🔍 CVE-2025-38689

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

🇰🇷 한글 설명

Linux 커널의 x86/fpu 구성 요소에서 CONFIG_X86_DEBUG_FPU가 활성화된 경우, /proc/[kthread]/arch_status를 읽을 때 NULL 포인터 역참조가 발생하여 시스템 경고가 발생할 수 있습니다. 이는 커널 스레드에 대해 AVX-512 상태를 확인하는 과정에서 적절한 NULL 체크가 누락되어 발생하는 문제입니다.

💡 쉬운 설명

컴퓨터의 핵심 운영체제인 리눅스에서 특정 정보를 읽으려 할 때, 존재하지 않는 메모리 주소를 참조하여 시스템에 오류를 일으킬 수 있는 결함입니다. 주로 개발용 설정이 켜져 있는 환경에서 발생할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: x86/fpu: Fix NULL dereference in avx512_status() Problem ------- With CONFIG_X86_DEBUG_FPU enabled, reading /proc/[kthread]/arch_status causes a warning and a NULL pointer dereference. This is because the AVX-512 timestamp code uses x86_task_fpu() but doesn't check it for NULL. CONFIG_X86_DEBUG_FPU addles that function for kernel threads (PF_KTHREAD specifically), making it return NULL. The point of the warning was to ensure that kernel threads only access task->fpu after going through kernel_fpu_begin()/_end(). Note: all kernel tasks exposed in /proc have a valid task->fpu. Solution -------- One option is to silence the warning and check for NULL from x86_task_fpu(). However, that warning is fairly fresh and seems like a defense against misuse of the FPU state in kernel threads. Instead, stop outputting AVX-512_elapsed_ms for kernel threads altogether. The data was garbage anyway because avx512_timestamp is only updated for user threads, not kernel threads. If anyone ever wants to track kernel thread AVX-512 use, they can come back later and do it properly, separate from this bug fix. [ dhansen: mostly rewrite changelog ]

📍 영향받는 시스템

CONFIG_X86_DEBUG_FPU 옵션이 활성화된 Linux 커널 (x86 아키텍처)

⚔️ 공격 벡터

로컬 사용자가 /proc/[kthread]/arch_status 파일을 읽는 행위를 통해 유도 가능

🛡️ 대응 방법

커널 패치를 적용하여 커널 스레드에 대한 AVX-512 데이터 출력을 제한하거나 NULL 체크 로직을 포함해야 함

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 수정된 최신 패치 버전인지 확인하십시오.

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