🇰🇷 한글 설명
Linux 커널의 iio: imu: adis16550 드라이버에서 트리거 핸들러의 스택 누수 취약점이 발견되었습니다. scan data 배열이 초기화되지 않은 상태로 스택에 선언되어, 일부 데이터가 채워지지 않은 채 사용자 공간으로 유출될 수 있습니다.
💡 쉬운 설명
컴퓨터 메모리의 일부 공간이 깨끗하게 지워지지 않은 상태로 외부로 전달되는 문제입니다. 이로 인해 시스템 내부의 민감한 정보가 의도치 않게 노출될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
iio: imu: adis16550: fix stack leak in trigger handler
adis16550_trigger_handler() declares the scan data array on the stack
without initializing it. The memcpy() at the bottom fills only the
first 28 bytes (TEMP + 6 channels of GYRO/ACCEL data), and
iio_push_to_buffers_with_timestamp() writes the s64 timestamp at the
8-byte-aligned offset 32. Bytes 28-31 remain uninitialized stack data
which leaks to userspace on ever trigger.
Fix this all by just zero-initializing the structure on the stack.
📍 영향받는 시스템
Linux kernel (adis16550 드라이버를 사용하는 시스템)
⚔️ 공격 벡터
로컬 공격자가 트리거를 발생시켜 초기화되지 않은 스택 메모리 데이터를 읽어내는 방식
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 스택 구조체를 0으로 초기화해야 합니다.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인합니다.