🇰🇷 한글 설명
TensorFlow의 `tf.raw_ops.SparseDenseCwiseDiv` 구현에서 0으로 나누기 오류가 발생하는 취약점이 발견되었습니다. 이 문제는 이진 연산을 위한 공통 클래스가 0으로 나누는 경우를 별도로 처리하지 못해 발생합니다. 해당 문제는 TensorFlow 2.6.0 및 특정 패치 버전에서 수정되었습니다.
💡 쉬운 설명
수학 계산을 수행하는 TensorFlow 프로그램에서 어떤 숫자를 0으로 나누려고 할 때 오류가 발생하는 문제입니다. 이로 인해 프로그램이 갑자기 멈추거나 예상치 못한 동작을 할 수 있습니다.
🇺🇸 원문 (English)
TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation of `tf.raw_ops.SparseDenseCwiseDiv` is vulnerable to a division by 0 error. The [implementation](https://github.com/tensorflow/tensorflow/blob/a1bc56203f21a5a4995311825ffaba7a670d7747/tensorflow/core/kernels/sparse_dense_binary_op_shared.cc#L56) uses a common class for all binary operations but fails to treat the division by 0 case separately. We have patched the issue in GitHub commit d9204be9f49520cdaaeb2541d1dc5187b23f31d9. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.
📍 영향받는 시스템
TensorFlow 2.6.0 미만 버전 (2.5.1, 2.4.3, 2.3.4 포함)
⚔️ 공격 벡터
조작된 입력 데이터를 통해 0으로 나누는 연산을 유도하여 프로그램의 비정상 종료를 유발
🛡️ 대응 방법
TensorFlow를 2.6.0 이상 버전으로 업데이트하거나, 제공된 패치가 적용된 버전(2.5.1, 2.4.3, 2.3.4)으로 업데이트
🔧 검증 코드
출력된 버전 번호가 2.6.0 미만인지 확인하여 취약 여부를 판단합니다.
python3 -c 'import tensorflow as tf; print(tf.__version__)'