🔍 CVE-2021-41204

5.5
CVSS Score
MEDIUM
2021-11-05
2026-06-17 04:08
✅ 완료

🇰🇷 한글 설명

TensorFlow의 Grappler 최적화 단계에서 상수 폴딩(constant folding) 과정 중 리소스 텐서를 딥 카피하려고 시도할 때 세그멘테이션 오류(segfault)가 발생할 수 있습니다. 이 문제는 리소스 텐서가 변경되지 않아야 함에도 불구하고 복사 시도가 이루어지기 때문에 발생합니다.

💡 쉬운 설명

머신러닝 도구인 TensorFlow가 데이터를 최적화하는 과정에서 잘못된 메모리 접근을 하여 프로그램이 갑자기 종료될 수 있는 문제입니다. 공격자가 특수하게 조작된 데이터를 입력하면 시스템을 강제로 중단시킬 수 있습니다.

🇺🇸 원문 (English)

TensorFlow is an open source platform for machine learning. In affected versions during TensorFlow's Grappler optimizer phase, constant folding might attempt to deep copy a resource tensor. This results in a segfault, as these tensors are supposed to not change. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.

📍 영향받는 시스템

TensorFlow 2.7.0 미만 버전 (2.6.1, 2.5.2, 2.4.4 포함)

⚔️ 공격 벡터

조작된 리소스 텐서를 포함한 모델 또는 데이터를 TensorFlow 엔진에 입력하여 세그멘테이션 오류 유도

🛡️ 대응 방법

TensorFlow를 2.7.0 이상 버전으로 업데이트하거나, 지원되는 버전(2.6.1, 2.5.2, 2.4.4)의 최신 패치 버전으로 업데이트

🔧 검증 코드

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

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

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Azure Machine Learning