🇰🇷 한글 설명
TensorFlow의 DeserializeSparse 함수 내 형상 추론(shape inference) 코드에서 Null 포인터 역참조가 발생할 수 있는 취약점입니다. 이는 해당 함수가 입력 텐서의 랭크가 양수이고 마지막 차원이 3이라고 잘못 가정하기 때문에 발생합니다.
💡 쉬운 설명
머신러닝 도구인 TensorFlow에서 특정 데이터를 처리할 때 프로그램이 예상치 못한 오류로 인해 갑자기 종료될 수 있는 문제입니다. 잘못된 형식의 데이터를 입력하면 시스템이 길을 잃고 멈춰버릴 수 있습니다.
🇺🇸 원문 (English)
TensorFlow is an open source platform for machine learning. In affected versions the shape inference code for `DeserializeSparse` can trigger a null pointer dereference. This is because the shape inference function assumes that the `serialize_sparse` tensor is a tensor with positive rank (and having `3` as the last dimension). 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 포함)
⚔️ 공격 벡터
조작된 형태의 Sparse 텐서 데이터를 DeserializeSparse 함수에 입력하여 프로그램 충돌 유도
🛡️ 대응 방법
TensorFlow를 2.7.0 이상 버전으로 업데이트하거나, 지원되는 버전(2.6.1, 2.5.2, 2.4.4)의 보안 패치를 적용하십시오.
🔧 검증 코드
출력된 버전 번호가 2.7.0 미만인지 확인하여 취약 여부를 판단합니다.
python3 -c 'import tensorflow as tf; print(tf.__version__)'