🇰🇷 한글 설명
Linux 커널의 visconti 클록 드라이버에서 clk_init_data 구조체가 완전히 초기화되지 않아 발생하는 취약점입니다. 특정 설정이 활성화된 경우 초기화되지 않은 parent_names 멤버를 참조하게 되어 시스템 충돌(Crash)을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터의 시계 역할을 하는 부품을 설정할 때, 사용하지 않는 정보까지 깨끗하게 지우지 않아 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 꺼질 수 있는 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
clk: visconti: Make sure clk_init_data is fully initialized
The clk_init_data structure contains several mutually-exclusive members
for different methods to specify the possible parents of a clock,
prompting drivers to initialize only the members they need. However,
not initializing all members may cause subtle issues, which are only
exposed when CONFIG_INIT_STACK_ALL_PATTERN or CONFIG_INIT_STACK_NONE is
enabled.
visconti_clk_register_gate() fills in init.parent_data, and assumes that
init.parent_names is NULL. However, the latter in uninitialized, and
thus may cause a crash.
Make sure all members are fully initialized, to fix such bugs, and to
avoid future breakage when converting drivers to a different method for
specifying the parents.
📍 영향받는 시스템
Linux kernel (visconti clock driver 사용 환경)
⚔️ 공격 벡터
로컬 시스템에서 특정 커널 설정(CONFIG_INIT_STACK_ALL_PATTERN 등)이 활성화된 상태에서 클록 드라이버 조작을 통한 시스템 충돌 유도
🛡️ 대응 방법
visconti 클록 드라이버의 clk_init_data 구조체 초기화 코드가 포함된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 확인