CVE-2021-3490 Linux kernel eBPF bitwise ops ALU32 bounds tracking
리눅스 커널 eBPF 비트 단위 연산 ALU32 트래킹
설명
The eBPF ALU32 bounds tracking for bitwise ops (AND, OR and XOR) in the Linux kernel did not properly update 32-bit bounds, which could be turned into out of bounds reads and writes in the Linux kernel and therefore, arbitrary code execution. This issue was fixed via commit 049c4e13714e ("bpf: Fix alu32 const subreg bound tracking on bitwise operations") (v5.13-rc4) and backported to the stable kernels in v5.12.4, v5.11.21, and v5.10.37. The AND/OR issues were introduced by commit 3f50f132d840 ("bpf: Verifier, do explicit ALU32 bounds tracking") (5.7-rc1) and the XOR variant was introduced by 2921c90d4718 ("bpf:Fix a verifier failure with xor") ( 5.10-rc1).
리눅스 커널에서 비트단위 연산(AND, OR, XOR)에 대한 추적을 하는 eBPF ALU32 경계는 32비트 경계를 제대로 업데이트하지 못했으며, 이는 리눅스 커널에서 읽고 쓰는 범위를 벗어나 임의 코드 실행이 될 수 있다. 이 문제는 커밋 049c4e13714e ("bpf: 비트단위 연산에서 alu32 const subreg bitwise trading을 수정") (v5.13-rc4)를 통해 수정되었으며 v5.12.4, v5.11.21, v5.10.37의 안정 커널로 백포트되었습니다. AND/OR 문제는 커밋 3f50f132d840 ("bpf: Verifier, do explicit ALU32 bounds tracking") (5.7-rc1)에 의해 도입되었고, XOR 변형은 2921c90d4718 ("bpf:xor를 가진 검증자 실패를 수정하라") (5.10-rc1)에 의해 도입되었다.
영향 받는 제품 제품 1개
-
해결 버전 있음
Linux
Linux kernel
영향 받는 버전
- 버전 정보 확인 필요
- linux-5.12.y 이상 v5.12.4 미만
- linux-5.11.y 이상 v5.11.21 미만
- linux-5.10.y 이상 v5.10.37 미만
- v5.7-rc1 이상
해결 버전
- v5.12.4 이상
- v5.11.21 이상
- v5.10.37 이상
참고 자료 7건
- packetstormsecurity.com http://packetstormsecurity.com/files/164015/Linux-eBPF-ALU32-32-bit-Invalid-Bounds-Tracking-Local-Privilege-Escalation.html (새 창)
- git.kernel.org https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=049c4e13714ecbca567b4d5f6d563f05d431c80e (새 창)
- security.netapp.com https://security.netapp.com/advisory/ntap-20210716-0004/ (새 창)
- ubuntu.com https://ubuntu.com/security/notices/USN-4949-1 (새 창)
- ubuntu.com https://ubuntu.com/security/notices/USN-4950-1 (새 창)
- openwall.com https://www.openwall.com/lists/oss-security/2021/05/11/11 (새 창)
- zerodayinitiative.com https://www.zerodayinitiative.com/advisories/ZDI-21-606/ (새 창)