🇰🇷 한글 설명
Linux 커널의 MIPS32 아키텍처에서 BPF 컴파일러가 JMP JEQ/JNE 명령어를 생성할 때 잘못된 명령어를 사용하는 취약점이 발견되었습니다. addiu 대신 addu 명령어가 생성되어 즉시값이 레지스터 $at로 잘못 해석됨으로써, 음수 피연산자를 사용할 때 비교 결과가 유효하지 않게 되는 문제가 있었습니다.
💡 쉬운 설명
컴퓨터가 특정 숫자를 비교할 때 계산 방식을 잘못 사용하여 결과가 틀리게 나오는 오류입니다. 이로 인해 프로그램이 의도와 다르게 동작하거나 보안 검사를 우회할 가능성이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix immediate JMP JEQ/JNE on MIPS32
An addu instruction was emitted instead of addiu, causing the immediate
value 1 to be interpreted as register $at. This made the comparison
result invalid when the immediate operand was negative. Note that $at
is mapped to BPF_REG_AX, which is used for constant blinding.
Fix the instruction to use the immediate form.
Found with test_bpf on MIPS32r1 emulated by QEMU.
📍 영향받는 시스템
MIPS32 아키텍처를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
조작된 BPF(Berkeley Packet Filter) 프로그램을 실행하여 잘못된 비교 로직을 유도
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 이후의 버전인지 확인