Advisory

PYSEC-2021-818

Also known as: BIT-tensorflow-2021-41211, CVE-2021-41211, GHSA-cvgx-3v3q-m36c, PYSEC-2021-403, PYSEC-2021-620

Summary

The record has no summary.

Details

TensorFlow is an open source platform for machine learning. In affected versions the shape inference code for QuantizeV2 can trigger a read outside of bounds of heap allocated array. This occurs whenever axis is a negative value less than -1. In this case, we are accessing data before the start of a heap buffer. The code allows axis to be an optional argument (s would contain an error::NOT_FOUND error code). Otherwise, it assumes that axis is a valid index into the dimensions of the input tensor. If axis is less than -1 then this results in a heap OOB read. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, as this version is the only one that is also affected.

Severity

Not rated by the source.

Dates

Published
2021-11-05 21:15 UTC
Modified
2023-12-06 01:01 UTC

Affected packages and fixes

tensorflow-gpu

PyPI · All systems

Affected

  • introduced 2.6.0, fixed 2.6.1, introduced 2.7.0rc0, fixed 2.7.0 (ecosystem)

Fixed versions

2.6.1, 2.7.0

Fix

  • Fixed version 2.6.1
    pip install --upgrade tensorflow-gpu==2.6.1
  • Fixed version 2.7.0
    pip install --upgrade tensorflow-gpu==2.7.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences