🇰🇷 한글 설명
Linux 커널의 cxl/fwctl 구성 요소에서 cxlctl_get_supported_features() 함수 실행 중 런타임 어설션 오류가 발생합니다. 이는 __counted_by_le(num_entries)에 의해 계산된 배열 크기보다 더 많은 데이터를 복사하려 할 때 발생하는 Fortify 기능의 오탐(False Positive) 문제입니다. num_entries를 더 일찍 초기화함으로써 이 문제를 해결했습니다.
💡 쉬운 설명
컴퓨터의 메모리 관리 시스템이 데이터 크기를 잘못 계산하여 오류를 일으키는 버그가 발견되었습니다. 실제 데이터가 넘치는 것은 아니지만, 시스템이 이를 위험한 상황으로 오해하여 작동을 멈출 수 있는 문제입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
cxl/fwctl: Fix __fortify_panic
Fix a runtime assertion in cxlctl_get_supported_features(). Fortify
complains that it is potentially overflowing the entries array per
__counted_by_le(num_entries). Quiet the false positive by initializing
@num_entries earlier.
memcpy: detected buffer overflow: 48 byte write of buffer size 0
WARNING: lib/string_helpers.c:1036 at __fortify_report+0x4d/0xa0, CPU#7: fwctl/1398
RIP: 0010:__fortify_report+0x50/0xa0
Call Trace:
__fortify_panic+0xd/0xf
cxlctl_get_supported_features.cold+0x23/0x35 [cxl_core]
📍 영향받는 시스템
CXL(Compute Express Link) 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 공격자가 특정 CXL 하드웨어 제어 명령을 통해 시스템 패닉(중단)을 유도할 수 있음
🛡️ 대응 방법
CXL 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인