🇰🇷 한글 설명
TensorFlow의 `tf.raw_ops.CTCGreedyDecoder` 구현 내에서 불변성을 검증하는 `CHECK_LT` 조건이 실패할 경우, 오류를 반환하는 대신 프로그램이 즉시 중단됩니다. 공격자는 이를 악용하여 서비스 거부(DoS) 공격을 수행할 수 있습니다.
💡 쉬운 설명
머신러닝 도구인 TensorFlow에서 특정 계산을 수행할 때 프로그램이 예외 처리를 하지 못하고 갑자기 꺼지는 문제가 있습니다. 공격자가 의도적으로 잘못된 데이터를 입력하면 시스템을 멈추게 만들 수 있습니다.
🇺🇸 원문 (English)
TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger a denial of service via a `CHECK`-fail in `tf.raw_ops.CTCGreedyDecoder`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/1615440b17b364b875eb06f43d087381f1460a65/tensorflow/core/kernels/ctc_decoder_ops.cc#L37-L50) has a `CHECK_LT` inserted to validate some invariants. When this condition is false, the program aborts, instead of returning a valid error to the user. This abnormal termination can be weaponized in denial of service attacks. 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 포함)
⚔️ 공격 벡터
CTCGreedyDecoder 연산에 유효하지 않은 입력값을 전달하여 프로그램 강제 종료 유도
🛡️ 대응 방법
TensorFlow를 2.5.0 이상의 최신 버전으로 업데이트하거나 해당 패치가 적용된 버전으로 업그레이드
🔧 검증 코드
출력된 버전 번호가 2.5.0보다 낮은지 확인하여 취약 여부를 판단합니다.
python3 -c 'import tensorflow as tf; print(tf.__version__)'