🇰🇷 한글 설명
Linux 커널의 powerpc/pseries 드라이버 내 papr-phy-attest 기능에서 cmd.length 값이 검증되지 않아 버퍼 오버플로우가 발생할 수 있는 취약점입니다. 또한, 오류 발생 시 메모리 누수가 발생하는 문제도 함께 발견되어 수정되었습니다.
💡 쉬운 설명
컴퓨터의 핵심 소프트웨어인 리눅스 커널에서 데이터 길이를 제대로 확인하지 않아 발생하는 보안 약점입니다. 이로 인해 시스템이 멈추거나 메모리가 낭비될 수 있는 문제가 있었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
powerpc/pseries: papr-phy-attest - validate cmd.length, plug mem leak
In papr_phy_attest_create_handle(), the params->cmd.length is not
validated before use, which can result in a buffer overlow. Check it and
return -EINVAL if it is either 0 or exceeds sizeof(params->cmd).
Also, params is freed on the success path but not error. Free it on
errors after memory allocation. And free it on negative fd.
📍 영향받는 시스템
Linux kernel (powerpc/pseries driver)
⚔️ 공격 벡터
조작된 길이 값을 가진 명령을 papr-phy-attest 핸들 생성 시 전달하여 버퍼 오버플로우 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인