🔍 CVE-2021-47317

7.8
CVSS Score
HIGH
2024-05-21
2026-08-04 10:16
✅ 완료

🇰🇷 한글 설명

Linux 커널의 powerpc64 아키텍처에서 BPF 원자적 명령어를 감지하는 과정에 오류가 발견되었습니다. 잘못된 명령어를 검증 없이 JIT 컴파일할 경우 시스템이 소프트 락업(soft lockup) 상태에 빠질 수 있는 취약점입니다.

💡 쉬운 설명

컴퓨터의 핵심 운영체제인 리눅스에서 특정 명령어를 잘못 해석하여 시스템이 멈춰버릴 수 있는 문제입니다. 공격자가 특수하게 제작된 프로그램을 실행하면 컴퓨터가 응답하지 않게 만들 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: powerpc/bpf: Fix detecting BPF atomic instructions Commit 91c960b0056672 ("bpf: Rename BPF_XADD and prepare to encode other atomics in .imm") converted BPF_XADD to BPF_ATOMIC and added a way to distinguish instructions based on the immediate field. Existing JIT implementations were updated to check for the immediate field and to reject programs utilizing anything more than BPF_ADD (such as BPF_FETCH) in the immediate field. However, the check added to powerpc64 JIT did not look at the correct BPF instruction. Due to this, such programs would be accepted and incorrectly JIT'ed resulting in soft lockups, as seen with the atomic bounds test. Fix this by looking at the correct immediate value.

📍 영향받는 시스템

powerpc64 아키텍처를 사용하는 Linux 커널 버전

⚔️ 공격 벡터

조작된 BPF(Berkeley Packet Filter) 프로그램을 실행하여 JIT 컴파일러의 검증 로직을 우회

🛡️ 대응 방법

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