🇰🇷 한글 설명
Linux 커널의 CoreSight TMC 드라이버에서 이벤트 핸들이 경로에 포함되지 않아 발생하는 취약점입니다. 이로 인해 perf 모드 사용 시 잘못된 메모리 주소에 접근하여 커널 패닉(Oops)이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 성능을 측정하는 도구를 사용할 때, 시스템이 엉뚱한 메모리 주소를 참조하여 컴퓨터가 갑자기 멈추거나 오류가 발생하는 문제입니다. 특정 하드웨어 추적 기능을 사용할 때 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
coresight: tmc: add the handle of the event to the path
The handle is essential for retrieving the AUX_EVENT of each CPU and is
required in perf mode. It has been added to the coresight_path so that
dependent devices can access it from the path when needed.
The existing bug can be reproduced with:
perf record -e cs_etm//k -C 0-9 dd if=/dev/zero of=/dev/null
Showing an oops as follows:
Unable to handle kernel paging request at virtual address 000f6e84934ed19e
Call trace:
tmc_etr_get_buffer+0x30/0x80 [coresight_tmc] (P)
catu_enable_hw+0xbc/0x3d0 [coresight_catu]
catu_enable+0x70/0xe0 [coresight_catu]
coresight_enable_path+0xb0/0x258 [coresight]
📍 영향받는 시스템
CoreSight 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 사용자가 perf 도구를 사용하여 특정 하드웨어 이벤트(cs_etm)를 기록할 때 발생
🛡️ 대응 방법
CoreSight TMC 핸들 처리가 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인하십시오.