🔍 CVE-2021-29518

2.5
CVSS Score
LOW
2021-05-14
2026-06-17 03:47
✅ 완료

🇰🇷 한글 설명

TensorFlow의 eager mode에서 세션 관련 raw ops를 호출할 경우, 세션 상태 포인터의 유효성을 확인하지 않아 null 포인터 역참조가 발생할 수 있습니다. 이로 인해 정의되지 않은 동작이 발생하며 시스템이 불안정해질 수 있습니다.

💡 쉬운 설명

머신러닝 도구인 TensorFlow를 사용할 때 특정 방식으로 명령을 내리면 프로그램이 예상치 못한 오류를 일으키며 멈출 수 있는 문제입니다. 이는 데이터 처리 과정에서 빈 공간을 잘못 참조하여 발생하는 현상입니다.

🇺🇸 원문 (English)

TensorFlow is an end-to-end open source platform for machine learning. In eager mode (default in TF 2.0 and later), session operations are invalid. However, users could still call the raw ops associated with them and trigger a null pointer dereference. The implementation(https://github.com/tensorflow/tensorflow/blob/eebb96c2830d48597d055d247c0e9aebaea94cd5/tensorflow/core/kernels/session_ops.cc#L104) dereferences the session state pointer without checking if it is valid. Thus, in eager mode, `ctx->session_state()` is nullptr and the call of the member function is undefined behavior. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.

📍 영향받는 시스템

TensorFlow 2.5.0 미만 버전 (2.4.2, 2.3.3, 2.2.3, 2.1.4 포함)

⚔️ 공격 벡터

Eager mode에서 유효하지 않은 세션 상태를 유도하는 raw ops 호출을 통한 Null Pointer Dereference 유발

🛡️ 대응 방법

TensorFlow를 2.5.0 이상 버전으로 업데이트하거나 해당 보안 패치가 적용된 버전으로 업그레이드하십시오.

🔧 검증 코드

출력된 버전 번호가 2.5.0 미만인지 확인하여 취약 여부를 판단합니다.

Shell / Script
python3 -c 'import tensorflow as tf; print(tf.__version__)'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L

💻 영향받는 소프트웨어

Azure Machine Learning