🔍 CVE-2024-58237

7.8
CVSS Score
HIGH
2025-05-05
2026-10-15 22:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 BPF(Berkeley Packet Filter)에서 꼬리 호출(tail call)이 패킷 포인터를 무효화할 수 있는 취약점이 발견되었습니다. 꼬리 호출된 프로그램이 패킷 데이터를 변경할 수 있음에도 불구하고 이를 검증하지 못해 메모리 안전성 문제가 발생할 수 있습니다.

💡 쉬운 설명

프로그램이 다른 코드를 실행하는 과정에서 데이터의 위치가 바뀌었는데도 이를 인지하지 못해 잘못된 메모리 주소에 접근할 수 있는 문제입니다. 이로 인해 시스템의 보안이 뚫리거나 프로그램이 비정상적으로 종료될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: bpf: consider that tail calls invalidate packet pointers Tail-called programs could execute any of the helpers that invalidate packet pointers. Hence, conservatively assume that each tail call invalidates packet pointers. Making the change in bpf_helper_changes_pkt_data() automatically makes use of check_cfg() logic that computes 'changes_pkt_data' effect for global sub-programs, such that the following program could be rejected: int tail_call(struct __sk_buff *sk) { bpf_tail_call_static(sk, &jmp_table, 0); return 0; } SEC("tc") int not_safe(struct __sk_buff *sk) { int *p = (void *)(long)sk->data; ... make p valid ... tail_call(sk); *p = 42; /* this is unsafe */ ... } The tc_bpf2bpf.c:subprog_tc() needs change: mark it as a function that can invalidate packet pointers. Otherwise, it can't be freplaced with tailcall_freplace.c:entry_freplace() that does a tail call.

📍 영향받는 시스템

Linux Kernel (BPF 기능을 사용하는 시스템)

⚔️ 공격 벡터

조작된 BPF 프로그램을 로드하여 패킷 포인터 무효화 후 잘못된 메모리 주소에 쓰기 작업 수행

🛡️ 대응 방법

패킷 포인터 무효화를 고려하도록 수정된 최신 Linux 커널 버전으로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel