🇰🇷 한글 설명
TensorFlow의 `tf.raw_ops.UncompressElement` 코드에서 Null 포인터 역참조가 발생할 수 있는 취약점이 발견되었습니다. Variant 텐서가 CompressedElement를 포함하고 있는지 확인하는 절차가 누락되어 있어, 잘못된 데이터 입력 시 프로그램이 비정상적으로 종료될 수 있습니다.
💡 쉬운 설명
TensorFlow라는 인공지능 도구에서 데이터 형식을 확인하지 않고 잘못된 정보를 읽으려다 프로그램이 갑자기 꺼질 수 있는 문제입니다. 공격자가 특수하게 조작된 데이터를 입력하면 시스템을 중단시킬 수 있습니다.
🇺🇸 원문 (English)
TensorFlow is an end-to-end open source platform for machine learning. The code for `tf.raw_ops.UncompressElement` can be made to trigger a null pointer dereference. The [implementation](https://github.com/tensorflow/tensorflow/blob/f24faa153ad31a4b51578f8181d3aaab77a1ddeb/tensorflow/core/kernels/data/experimental/compression_ops.cc#L50-L53) obtains a pointer to a `CompressedElement` from a `Variant` tensor and then proceeds to dereference it for decompressing. There is no check that the `Variant` tensor contained a `CompressedElement`, so the pointer is actually `nullptr`. We have patched the issue in GitHub commit 7bdf50bb4f5c54a4997c379092888546c97c3ebd. 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 포함)
⚔️ 공격 벡터
조작된 Variant 텐서 데이터를 입력하여 Null 포인터 역참조 유도
🛡️ 대응 방법
TensorFlow를 2.6.0 이상 버전으로 업데이트하거나, 해당 패치가 적용된 최신 마이너 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 2.6.0 미만인지 확인하여 취약 여부를 판단합니다.
python3 -c 'import tensorflow as tf; print(tf.__version__)'