🔍 CVE-2024-43840

7.8
CVSS Score
HIGH
2024-08-17
2026-08-04 11:19
✅ 완료

🇰🇷 한글 설명

Linux 커널의 arm64 아키텍처에서 BPF 트램펄린 생성 시 발생하는 취약점입니다. BPF_TRAMP_F_CALL_ORIG 플래그가 설정될 때, kzalloc로 할당된 주소가 48비트를 초과할 경우 잘못된 주소가 전달되어 커널 크래시(Panic)를 유발할 수 있습니다.

💡 쉬운 설명

컴퓨터의 핵심 운영체제인 리눅스에서 특정 기능을 실행할 때 주소를 잘못 계산하는 오류가 발견되었습니다. 이 오류가 발생하면 시스템이 갑자기 멈추거나 재부팅될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: bpf, arm64: Fix trampoline for BPF_TRAMP_F_CALL_ORIG When BPF_TRAMP_F_CALL_ORIG is set, the trampoline calls __bpf_tramp_enter() and __bpf_tramp_exit() functions, passing them the struct bpf_tramp_image *im pointer as an argument in R0. The trampoline generation code uses emit_addr_mov_i64() to emit instructions for moving the bpf_tramp_image address into R0, but emit_addr_mov_i64() assumes the address to be in the vmalloc() space and uses only 48 bits. Because bpf_tramp_image is allocated using kzalloc(), its address can use more than 48-bits, in this case the trampoline will pass an invalid address to __bpf_tramp_enter/exit() causing a kernel crash. Fix this by using emit_a64_mov_i64() in place of emit_addr_mov_i64() as it can work with addresses that are greater than 48-bits.

📍 영향받는 시스템

Linux kernel (arm64 architecture) using BPF trampolines

⚔️ 공격 벡터

Local privilege escalation or Denial of Service (DoS) via specially crafted BPF program

🛡️ 대응 방법

Linux kernel을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.

Shell / Script
uname -a

📊 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