🇰🇷 한글 설명
Linux 커널의 arm_mpam 구성 요소에서 설정 배열이 할당되기 전에 파괴 함수가 호출될 경우 NULL 포인터 역참조가 발생하는 취약점입니다. mpam_disable() 호출 시 설정이 할당되지 않은 상태에서 __destroy_component_cfg()가 실행되면 시스템 오류가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 특정 기능을 끌 때, 아직 만들어지지도 않은 부품을 정리하려고 시도하여 시스템이 멈추거나 오류가 발생하는 문제입니다. 이를 방지하기 위해 부품이 실제로 있는지 먼저 확인하는 과정이 추가되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
arm_mpam: Check whether the config array is allocated before destroying it
__destroy_component_cfg() is called to free the configuration array.
It uses the embedded 'garbage' structure, which means the array has
to be allocated.
If __destroy_component_cfg() is called from mpam_disable() before the
configuration was ever allocated, then a NULL pointer is dereferenced.
Check for this case and return early if the configuration is not
allocated.
__destroy_component_cfg() also frees the mbwu_state as this is allocated
by __allocate_component_cfg(). As the mbwu_state is allocated after
comp->cfg is set, and is also under mpam_list_lock, only the first
pointer needs checking.
📍 영향받는 시스템
arm_mpam 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 권한을 가진 공격자가 MPAM 설정을 조작하여 커널 패닉을 유도하는 방식
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 버전인지 배포판 보안 공지를 통해 확인