🔍 CVE-2021-29560

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

🇰🇷 한글 설명

TensorFlow의 `tf.raw_ops.RaggedTensorToTensor` 연산에서 힙 버퍼 오버플로우 취약점이 발견되었습니다. 공격자가 입력 인자의 형태를 조작하여 `parent_output_index`가 `row_split`보다 짧게 만들 경우, 힙 영역의 경계를 벗어난 메모리 접근(OOB)을 유발할 수 있습니다.

💡 쉬운 설명

머신러닝 도구인 TensorFlow에서 데이터를 처리할 때 메모리 범위를 잘못 계산하는 오류가 있습니다. 악의적인 데이터를 입력하면 프로그램이 허용되지 않은 메모리 영역을 건드려 오류를 일으키거나 시스템에 영향을 줄 수 있습니다.

🇺🇸 원문 (English)

TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a heap buffer overflow in `tf.raw_ops.RaggedTensorToTensor`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/d94227d43aa125ad8b54115c03cece54f6a1977b/tensorflow/core/kernels/ragged_tensor_to_tensor_op.cc#L219-L222) uses the same index to access two arrays in parallel. Since the user controls the shape of the input arguments, an attacker could trigger a heap OOB access when `parent_output_index` is shorter than `row_split`. 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 포함)

⚔️ 공격 벡터

조작된 형태(shape)를 가진 RaggedTensor 입력 데이터를 통한 힙 버퍼 오버플로우 유발

🛡️ 대응 방법

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