CVE-2021-29539

Source
https://cve.org/CVERecord?id=CVE-2021-29539
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29539.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-29539
Aliases
Related
Published
2021-05-14T20:15:12.397Z
Modified
2026-03-17T23:45:50.910151Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

TensorFlow is an end-to-end open source platform for machine learning. Calling tf.raw_ops.ImmutableConst(https://www.tensorflow.org/apidocs/python/tf/rawops/ImmutableConst) with a dtype of tf.resource or tf.variant results in a segfault in the implementation as code assumes that the tensor contents are pure scalars. We have patched the issue in 4f663d4b8f0bec1b48da6fa091a7d29609980fa4 and will release TensorFlow 2.5.0 containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved. If using tf.raw_ops.ImmutableConst in code, you can prevent the segfault by inserting a filter for the dtype argument.

References

Affected packages

Git / github.com/tensorflow/tensorflow

Affected ranges

Type
GIT
Repo
https://github.com/tensorflow/tensorflow
Events
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.1.4"
        },
        {
            "introduced": "2.2.0"
        },
        {
            "fixed": "2.2.3"
        },
        {
            "introduced": "2.3.0"
        },
        {
            "fixed": "2.3.3"
        },
        {
            "introduced": "2.4.0"
        },
        {
            "fixed": "2.4.2"
        }
    ]
}

Database specific

vanir_signatures
[
    {
        "target": {
            "file": "tensorflow/core/kernels/immutable_constant_op.cc"
        },
        "signature_type": "Line",
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/4f663d4b8f0bec1b48da6fa091a7d29609980fa4",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "12563544929446211698053301062377590914",
                "137571452957836591019094816445246705009",
                "235616972400091037288007986211408956548",
                "326015201624673687626812774776250021675",
                "285873919466874483374699909338430700918",
                "334962677545375201507533193187720492060"
            ]
        },
        "id": "CVE-2021-29539-12e5829e"
    },
    {
        "target": {
            "file": "tensorflow/core/kernels/immutable_constant_op.cc",
            "function": "ImmutableConstantOp::ImmutableConstantOp"
        },
        "signature_type": "Function",
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://github.com/tensorflow/tensorflow/commit/4f663d4b8f0bec1b48da6fa091a7d29609980fa4",
        "digest": {
            "function_hash": "292135962459340309562044678436205658839",
            "length": 300.0
        },
        "id": "CVE-2021-29539-334a5292"
    }
]
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29539.json"