🇰🇷 한글 설명
리눅스 커널의 pseries/papr-hvpipe 모듈에서 사용자 공간으로 복사되는 헤더 구조체의 예약된 패딩 바이트가 초기화되지 않아 메모리 누수 취약점이 발생합니다. 이 패치는 전체 구조체를 0으로 초기화하여 미사용 메모리 정보가 유출되는 것을 방지합니다.
💡 쉬운 설명
시스템 내부의 사용하지 않는 메모리 정보가 외부로 새어 나올 수 있는 문제입니다. 개발자가 해당 메모리를 깨끗이 지우는 코드를 추가하여 이 위험을 차단했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
pseries/papr-hvpipe: Prevent kernel stack memory leak to userspace
The hdr variable is allocated on the stack and only hdr.version and
hdr.flags are initialized explicitly. Because the struct papr_hvpipe_hdr
contains reserved padding bytes (reserved[3] and reserved2[40]), these
could leak the uninitialized bytes to userspace after copy_to_user().
This patch fixes that by initializing the whole struct to 0.
📍 영향받는 시스템
Linux kernel (pseries/papr-hvpipe 모듈이 포함된 버전)
⚔️ 공격 벡터
로컬 또는 원격에서 커널 메모리 내용을 읽을 수 있는 API 호출을 통해 패딩 영역의 잔여 데이터를 획득
🛡️ 대응 방법
해당 CVE가 패치된 최신 Linux 커널 버전으로 업그레이드
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인