🇰🇷 한글 설명
Linux 커널의 x86/MCE/AMD 구성 요소에서 bank_map 변수가 32비트 unsigned int 타입으로 선언되어 발생하는 정수 오버플로 취약점입니다. MCA 뱅크 수가 32개를 초과할 경우 비트 시프트 연산 시 범위를 벗어나게 되어 시스템 오류나 예기치 않은 동작을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터의 오류를 기록하는 장치에서 처리할 수 있는 정보의 양이 설정된 저장 공간보다 커서 발생하는 문제입니다. 이로 인해 시스템이 제대로 작동하지 않거나 오류를 정확히 기록하지 못할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
x86/MCE/AMD: Use an u64 for bank_map
Thee maximum number of MCA banks is 64 (MAX_NR_BANKS), see
a0bc32b3cacf ("x86/mce: Increase maximum number of banks to 64").
However, the bank_map which contains a bitfield of which banks to
initialize is of type unsigned int and that overflows when those bit
numbers are >= 32, leading to UBSAN complaining correctly:
UBSAN: shift-out-of-bounds in arch/x86/kernel/cpu/mce/amd.c:1365:38
shift exponent 32 is too large for 32-bit type 'int'
Change the bank_map to a u64 and use the proper BIT_ULL() macro when
modifying bits in there.
[ bp: Rewrite commit message. ]
📍 영향받는 시스템
AMD 프로세서를 사용하는 x86 아키텍처 기반의 취약한 Linux 커널 버전
⚔️ 공격 벡터
로컬 시스템에서 특정 하드웨어 오류(MCA)를 유도하여 정수 오버플로를 발생시키는 방식
🛡️ 대응 방법
bank_map 타입을 u64로 변경하고 BIT_ULL() 매크로를 사용하는 최신 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 확인합니다.