🇰🇷 한글 설명
Linux 커널의 amlogic-spisg SPI 드라이버에서 clk_init_data 구조체가 완전히 초기화되지 않아 발생하는 취약점입니다. 특정 커널 설정이 활성화된 경우 초기화되지 않은 parent_names 멤버로 인해 시스템 충돌이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터 부품을 제어하는 소프트웨어에서 데이터 저장 공간을 깨끗이 비우지 않아 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 꺼지는 현상이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
spi: amlogic-spisg: 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.
aml_spisg_clk_init() 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.
📍 영향받는 시스템
amlogic-spisg 드라이버를 사용하는 Linux 커널 (CONFIG_INIT_STACK_ALL_PATTERN 또는 CONFIG_INIT_STACK_NONE 설정 시 위험)
⚔️ 공격 벡터
로컬 공격자가 특정 커널 설정을 유도하거나 드라이버 동작을 트리거하여 시스템 충돌(DoS) 유발 가능
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
현재 커널 버전과 해당 드라이버 소스 코드 내의 함수 존재 여부를 확인하여 패치 적용 여부를 판단합니다.
uname -r && grep -r 'aml_spisg_clk_init' /lib/modules/$(uname -r)/kernel/drivers/spi/ 2>/dev/null