🇰🇷 한글 설명
Linux 커널의 TDX 게스트 환경에서 호스트가 제어하는 'quote' 버퍼 길이를 검증하지 않아 발생하는 취약점입니다. 호스트가 게스트에 할당된 메모리보다 큰 길이를 지정하거나 경합 상태를 유발할 경우, 할당된 범위를 벗어난 메모리 내용이 게스트 사용자 공간으로 유출될 수 있습니다.
💡 쉬운 설명
컴퓨터의 보안 구역(TDX)에서 외부 관리자(호스트)가 잘못된 정보를 전달하여 보안 구역 내부의 민감한 데이터를 훔쳐볼 수 있는 문제입니다. 이로 인해 컨테이너 간의 데이터 경계가 무너지고 정보가 유출될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
virt: tdx-guest: Fix handling of host controlled 'quote' buffer length
Validate host controlled value `quote_buf->out_len` that determines how
many bytes of the quote are copied out to guest userspace. In TDX
environments with remote attestation, quotes are not considered private,
and can be forwarded to an attestation server.
Catch scenarios where the host specifies a response length larger than
the guest's allocation, or otherwise races modifying the response while
the guest consumes it.
This prevents contents beyond the pages allocated for `quote_buf`
(up to TSM_REPORT_OUTBLOB_MAX) from being read out to guest userspace,
and possibly forwarded in attestation requests.
Recall that some deployments want per-container configs-tsm-report
interfaces, so the leak may cross container protection boundaries, not
just local root.
📍 영향받는 시스템
Linux kernel (virt: tdx-guest 관련 모듈 사용 환경)
⚔️ 공격 벡터
호스트가 게스트의 메모리 할당 크기보다 큰 응답 길이를 지정하거나 경합 상태를 유발하여 메모리 유출 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 quote_buf->out_len 검증 로직 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인