🇰🇷 한글 설명
리눅스 커널의 uinput 구성 요소에서 uinput_ff_upload_compat 구조체가 초기화되지 않아 발생하는 정보 유출 취약점입니다. 구조체 내부의 정렬을 위한 패딩 영역에 남아있는 스택 데이터가 copy_to_user() 함수를 통해 사용자 공간으로 유출될 수 있습니다.
💡 쉬운 설명
컴퓨터 메모리의 빈 공간을 깨끗이 지우지 않고 외부로 전달하여, 의도치 않은 민감한 정보가 새어나갈 수 있는 문제입니다. 이를 방지하기 위해 데이터를 보내기 전 빈 공간을 0으로 채우는 수정이 이루어졌습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak
Struct ff_effect_compat is embedded twice inside
uinput_ff_upload_compat, contains internal padding. In particular, there
is a hole after struct ff_replay to satisfy alignment requirements for
the following union member. Without clearing the structure,
copy_to_user() may leak stack data to userspace.
Initialize ff_up_compat to zero before filling valid fields.
📍 영향받는 시스템
uinput 모듈을 사용하는 Linux Kernel 버전
⚔️ 공격 벡터
사용자 공간에서 uinput 장치를 통해 특정 구조체 데이터를 요청하여 메모리 패딩 영역의 데이터를 읽어냄
🛡️ 대응 방법
uinput_ff_upload_compat 구조체를 0으로 초기화하는 패치가 적용된 최신 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인