🇰🇷 한글 설명
Linux 커널의 KVM s390 환경에서 GAIT 테이블 인덱싱 시 포인터 산술 연산이 중복으로 수행되는 취약점이 발견되었습니다. 이로 인해 인덱스 값이 실제 크기보다 크게 계산되어 메모리의 허용되지 않은 영역에 접근하는 Out-of-bounds 오류가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 데이터를 찾기 위해 주소를 계산할 때, 이미 계산된 값에 크기를 한 번 더 곱하는 실수를 하여 엉뚱한 메모리 위치를 참조하는 문제입니다. 이로 인해 시스템이 불안정해지거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
KVM: s390: pci: fix GAIT table indexing due to double-scaling pointer arithmetic
kvm_s390_pci_aif_enable(), kvm_s390_pci_aif_disable(), and
aen_host_forward() index the GAIT by manually multiplying the index
with sizeof(struct zpci_gaite).
Since aift->gait is already a struct zpci_gaite pointer, this
double-scales the offset, accessing element aisb*16 instead of aisb.
This causes out-of-bounds accesses when aisb >= 32 (with
ZPCI_NR_DEVICES=512)
Fix by removing the erroneous sizeof multiplication.
📍 영향받는 시스템
Linux kernel (KVM s390 architecture)
⚔️ 공격 벡터
특수하게 조작된 PCI 장치 인터페이스를 통해 잘못된 인덱스 값을 전달하여 메모리 경계 외 영역에 접근
🛡️ 대응 방법
잘못된 sizeof 곱셈 연산이 제거된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 확인