🔍 CVE-2025-39904

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

🇰🇷 한글 설명

Linux 커널의 arm64 및 riscv 아키텍처에서 kexec_buf 구조체가 초기화되지 않은 상태로 선언되어 발생하는 취약점입니다. 특정 필드가 초기화되지 않아 쓰레기 값이 포함될 수 있으며, 이는 UBSAN 경고를 유발하거나 예기치 않은 동작을 일으킬 수 있습니다.

💡 쉬운 설명

컴퓨터가 새로운 운영체제를 실행할 때 사용하는 메모리 공간에 쓰레기 값이 들어있어 오류가 발생할 수 있는 문제입니다. 이로 인해 시스템이 불안정해지거나 예상치 못한 동작을 할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: arm64: kexec: initialize kexec_buf struct in load_other_segments() Patch series "kexec: Fix invalid field access". The kexec_buf structure was previously declared without initialization. commit bf454ec31add ("kexec_file: allow to place kexec_buf randomly") added a field that is always read but not consistently populated by all architectures. This un-initialized field will contain garbage. This is also triggering a UBSAN warning when the uninitialized data was accessed: ------------[ cut here ]------------ UBSAN: invalid-load in ./include/linux/kexec.h:210:10 load of value 252 is not a valid value for type '_Bool' Zero-initializing kexec_buf at declaration ensures all fields are cleanly set, preventing future instances of uninitialized memory being used. An initial fix was already landed for arm64[0], and this patchset fixes the problem on the remaining arm64 code and on riscv, as raised by Mark. Discussions about this problem could be found at[1][2]. This patch (of 3): The kexec_buf structure was previously declared without initialization. commit bf454ec31add ("kexec_file: allow to place kexec_buf randomly") added a field that is always read but not consistently populated by all architectures. This un-initialized field will contain garbage. This is also triggering a UBSAN warning when the uninitialized data was accessed: ------------[ cut here ]------------ UBSAN: invalid-load in ./include/linux/kexec.h:210:10 load of value 252 is not a valid value for type '_Bool' Zero-initializing kexec_buf at declaration ensures all fields are cleanly set, preventing future instances of uninitialized memory being used.

📍 영향받는 시스템

Linux kernel (arm64 및 riscv 아키텍처 기반 시스템)

⚔️ 공격 벡터

로컬 공격자가 kexec를 통해 커널 메모리 내의 초기화되지 않은 데이터를 조작하거나 활용할 수 있음

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 kexec_buf 구조체가 0으로 초기화되도록 수정해야 함

🔧 검증 코드

현재 사용 중인 커널 버전이 해당 취약점이 해결된 패치 이후의 버전인지 확인합니다.

Shell / Script
uname -a && grep -E 'kexec' /proc/version

📊 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