🇰🇷 한글 설명
Linux 커널의 input_ff_effect_from_user 함수에서 compat 경로 처리 시 구조체 초기화가 누락되어 발생하는 취약점입니다. 이로 인해 초기화되지 않은 커널 스택 메모리가 사용자 공간으로 유출될 수 있습니다.
💡 쉬운 설명
컴퓨터의 중요한 비밀 정보가 담긴 메모리 영역이 실수로 외부로 노출될 수 있는 보안 결함입니다. 공격자는 이를 통해 시스템 내부의 민감한 데이터를 훔쳐볼 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Input: zero ff_effect before compat copy in input_ff_effect_from_user
In the compat path input_ff_effect_from_user() aliases the caller's
native struct ff_effect with the smaller struct ff_effect_compat and
copies only the compat sized prefix:
compat_effect = (struct ff_effect_compat *)effect;
if (copy_from_user(compat_effect, buffer,
sizeof(struct ff_effect_compat)))
The tail of the native structure is never written. Callers pass an
uninitialized on-stack object, for example evdev_do_ioctl() for
EVIOCSFF, so those bytes keep their previous stack contents.
input_ff_upload() then stores the full native structure in
ff->effects[id], from where a uinput based force feedback daemon can
read it back via UI_BEGIN_FF_UPLOAD, disclosing kernel stack memory to
userspace.
Zero the effect before the compat copy.
📍 영향받는 시스템
Linux Kernel (input subsystem 관련 버전)
⚔️ 공격 벡터
uinput 기반의 force feedback 데몬을 통해 UI_BEGIN_FF_UPLOAD를 호출하여 커널 스택 메모리 읽기
🛡️ 대응 방법
input_ff_effect_from_user 함수 내에서 compat copy 수행 전 ff_effect 구조체를 0으로 초기화하도록 커널 패치 적용
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 보안 패치 버전인지 확인합니다.
💻 영향받는 소프트웨어
NVIDIA Cloud Gaming Guest Driver for Linux