🔍 CVE-2026-98063

0.0
CVSS Score
UNKNOWN
2026-09-25
2026-10-19 10:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 bpf 구성 요소 중 btf_var_show() 함수에서 NULL 포인터 역참조 취약점이 발견되었습니다. 기본 BTF(vmlinux 등)를 처리할 때 resolved_ids가 NULL임에도 불구하고 이를 조건 없이 참조하여 시스템 충돌을 유발할 수 있습니다.

💡 쉬운 설명

리눅스 운영체제의 핵심 기능 중 하나인 BPF를 사용할 때, 잘못된 데이터를 입력하면 컴퓨터가 갑자기 멈추거나 오류가 발생할 수 있는 결함입니다. 특정 정보를 출력하는 과정에서 존재하지 않는 메모리 주소를 참조하려고 시도하기 때문에 발생합니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix NULL-ptr-deref in btf_var_show() btf_var_show() calls btf_type_id_resolve() unconditionally, which dereferences btf->resolved_ids. That is NULL for a base BTF - e.g. the vmlinux BTF that bpf_snprintf_btf() renders against - since base BTF is not resolved during parsing. btf_modifier_show() guards this with 'if (btf->resolved_ids)', but btf_var_show() does not. A BPF program that passes the type_id of a BTF_KIND_VAR from the vmlinux BTF to bpf_snprintf_btf() thus NULL-derefs: KASAN: probably user-memory-access in range [0x46638-0x4663f] RIP: 0010:btf_var_show (kernel/bpf/btf.c:2929) Call Trace: <TASK> btf_type_show (kernel/bpf/btf.c:8259) btf_type_snprintf_show (kernel/bpf/btf.c:8329) bpf_snprintf_btf (kernel/trace/bpf_trace.c:1047) bpf_prog_test_run_raw_tp (net/bpf/test_run.c:829) __sys_bpf (kernel/bpf/syscall.c:4804) do_syscall_64 (arch/x86/entry/syscall_64.c:84) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) </TASK> Resolve the var's type directly with btf_type_skip_modifiers() when resolved_ids is NULL, mirroring btf_modifier_show().

📍 영향받는 시스템

BTF(BPF Type Format) 기능을 사용하는 Linux Kernel 버전

⚔️ 공격 벡터

특수하게 조작된 BTF_KIND_VAR 타입을 bpf_snprintf_btf() 함수에 전달하는 BPF 프로그램 실행

🛡️ 대응 방법

해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 취약점이 패치된 최신 릴리스 버전인지 확인

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel