🇰🇷 한글 설명
Linux 커널의 LoongArch 아키텍처에서 BPF 테일 콜(tail call) 시 점프 오프셋 계산 방식의 오류가 발견되었습니다. 잘못된 분기 오프셋 계산으로 인해 추가 JIT 패스 수행 시 소프트 락업(soft lockup) 현상이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 명령어를 실행할 때 다음 단계로 넘어가는 위치를 잘못 계산하여 시스템이 멈추는 버그입니다. 이로 인해 시스템이 응답하지 않는 상태가 될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
LoongArch: BPF: Refactor jump offset calculation in tail call
The old macro-based jmp_offset calculation derives the jump distance
from a stale prior-pass code stride, which can lead to wrong branch
offsets and soft lockups under extra JIT passes.
Fix this by calculating the offset directly on the absolute target:
"ctx->offset[insn + 1] - ctx->idx".
To avoid a false 16-bit range check abort during size estimation, add
a "ctx->image == NULL" guard to inject a safe dummy offset.
📍 영향받는 시스템
LoongArch 아키텍처를 사용하는 Linux 커널
⚔️ 공격 벡터
특수하게 조작된 BPF 프로그램을 로드하여 커널의 점프 오프셋 계산 오류를 유도함으로써 시스템 서비스 거부(DoS) 유발
🛡️ 대응 방법
LoongArch BPF 점프 오프셋 계산 로직이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력 결과에 LoongArch 아키텍처가 포함되어 있는지 확인하여 해당 취약점 영향권 내 시스템인지 판단
uname -a | grep -i 'LoongArch'