GSD-2022-41887

Vulnerability from gsd - Updated: 2023-12-13 01:19
Details
TensorFlow is an open source platform for machine learning. `tf.keras.losses.poisson` receives a `y_pred` and `y_true` that are passed through `functor::mul` in `BinaryOp`. If the resulting dimensions overflow an `int32`, TensorFlow will crash due to a size mismatch during broadcast assignment. We have patched the issue in GitHub commit c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1 and 2.9.3, as these are also affected and still in supported range. However, we will not cherrypick this commit into TensorFlow 2.8.x, as it depends on Eigen behavior that changed between 2.8 and 2.9.
Aliases
Aliases

{
  "GSD": {
    "alias": "CVE-2022-41887",
    "id": "GSD-2022-41887"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "aliases": [
        "CVE-2022-41887"
      ],
      "details": "TensorFlow is an open source platform for machine learning. `tf.keras.losses.poisson` receives a `y_pred` and `y_true` that are passed through `functor::mul` in `BinaryOp`. If the resulting dimensions overflow an `int32`, TensorFlow will crash due to a size mismatch during broadcast assignment. We have patched the issue in GitHub commit c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1 and 2.9.3, as these are also affected and still in supported range. However, we will not cherrypick this commit into TensorFlow 2.8.x, as it depends on Eigen behavior that changed between 2.8 and 2.9.",
      "id": "GSD-2022-41887",
      "modified": "2023-12-13T01:19:32.548084Z",
      "schema_version": "1.4.0"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2022-41887",
        "STATE": "PUBLIC",
        "TITLE": "Overflow in `tf.keras.losses.poisson` in Tensorflow"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "tensorflow",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "\u003e= 2.10.0, \u003c 2.10.1"
                        },
                        {
                          "version_value": "\u003c 2.9.3"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "tensorflow"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "TensorFlow is an open source platform for machine learning. `tf.keras.losses.poisson` receives a `y_pred` and `y_true` that are passed through `functor::mul` in `BinaryOp`. If the resulting dimensions overflow an `int32`, TensorFlow will crash due to a size mismatch during broadcast assignment. We have patched the issue in GitHub commit c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1 and 2.9.3, as these are also affected and still in supported range. However, we will not cherrypick this commit into TensorFlow 2.8.x, as it depends on Eigen behavior that changed between 2.8 and 2.9."
          }
        ]
      },
      "impact": {
        "cvss": {
          "attackComplexity": "HIGH",
          "attackVector": "NETWORK",
          "availabilityImpact": "HIGH",
          "baseScore": 4.8,
          "baseSeverity": "MEDIUM",
          "confidentialityImpact": "NONE",
          "integrityImpact": "NONE",
          "privilegesRequired": "LOW",
          "scope": "UNCHANGED",
          "userInteraction": "REQUIRED",
          "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:H",
          "version": "3.1"
        }
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "CWE-131: Incorrect Calculation of Buffer Size"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-8fvv-46hw-vpg3",
            "refsource": "CONFIRM",
            "url": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-8fvv-46hw-vpg3"
          },
          {
            "name": "https://github.com/tensorflow/tensorflow/commit/c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c",
            "refsource": "MISC",
            "url": "https://github.com/tensorflow/tensorflow/commit/c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c"
          },
          {
            "name": "https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/cwise_ops_common.h",
            "refsource": "MISC",
            "url": "https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/cwise_ops_common.h"
          },
          {
            "name": "https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/losses.py",
            "refsource": "MISC",
            "url": "https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/losses.py"
          }
        ]
      },
      "source": {
        "advisory": "GHSA-8fvv-46hw-vpg3",
        "discovery": "UNKNOWN"
      }
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c2.9.3||\u003e=2.10.0,\u003c2.10.1",
          "affected_versions": "All versions before 2.9.3, all versions starting from 2.10.0 before 2.10.1",
          "cwe_ids": [
            "CWE-1035",
            "CWE-131",
            "CWE-937"
          ],
          "date": "2022-11-21",
          "description": "TensorFlow is an open source platform for machine learning. `tf.keras.losses.poisson` receives a `y_pred` and `y_true` that are passed through `functor::mul` in `BinaryOp`. If the resulting dimensions overflow an `int32`, TensorFlow will crash due to a size mismatch during broadcast assignment. We have patched the issue in GitHub commit c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1 and 2.9.3, as these are also affected and still in supported range. However, we will not cherrypick this commit into TensorFlow 2.8.x, as it depends on Eigen behavior that changed between 2.8 and 2.9.",
          "fixed_versions": [
            "2.9.3",
            "2.10.1"
          ],
          "identifier": "CVE-2022-41887",
          "identifiers": [
            "GHSA-8fvv-46hw-vpg3",
            "CVE-2022-41887"
          ],
          "not_impacted": "All versions starting from 2.9.3 before 2.10.0, all versions starting from 2.10.1",
          "package_slug": "pypi/tensorflow-cpu",
          "pubdate": "2022-11-21",
          "solution": "Upgrade to versions 2.9.3, 2.10.1 or above.",
          "title": "Incorrect Calculation of Buffer Size",
          "urls": [
            "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-8fvv-46hw-vpg3",
            "https://nvd.nist.gov/vuln/detail/CVE-2022-41887",
            "https://github.com/tensorflow/tensorflow/commit/c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c",
            "https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/cwise_ops_common.h",
            "https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/losses.py",
            "https://github.com/advisories/GHSA-8fvv-46hw-vpg3"
          ],
          "uuid": "313b09eb-77cf-4933-b8d8-d0d1ebb57c16"
        },
        {
          "affected_range": "\u003c2.9.3||\u003e=2.10.0,\u003c2.10.1",
          "affected_versions": "All versions before 2.9.3, all versions starting from 2.10.0 before 2.10.1",
          "cwe_ids": [
            "CWE-1035",
            "CWE-131",
            "CWE-937"
          ],
          "date": "2022-11-21",
          "description": "TensorFlow is an open source platform for machine learning. `tf.keras.losses.poisson` receives a `y_pred` and `y_true` that are passed through `functor::mul` in `BinaryOp`. If the resulting dimensions overflow an `int32`, TensorFlow will crash due to a size mismatch during broadcast assignment. We have patched the issue in GitHub commit c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1 and 2.9.3, as these are also affected and still in supported range. However, we will not cherrypick this commit into TensorFlow 2.8.x, as it depends on Eigen behavior that changed between 2.8 and 2.9.",
          "fixed_versions": [
            "2.9.3",
            "2.10.1"
          ],
          "identifier": "CVE-2022-41887",
          "identifiers": [
            "GHSA-8fvv-46hw-vpg3",
            "CVE-2022-41887"
          ],
          "not_impacted": "All versions starting from 2.9.3 before 2.10.0, all versions starting from 2.10.1",
          "package_slug": "pypi/tensorflow-gpu",
          "pubdate": "2022-11-21",
          "solution": "Upgrade to versions 2.9.3, 2.10.1 or above.",
          "title": "Incorrect Calculation of Buffer Size",
          "urls": [
            "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-8fvv-46hw-vpg3",
            "https://nvd.nist.gov/vuln/detail/CVE-2022-41887",
            "https://github.com/tensorflow/tensorflow/commit/c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c",
            "https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/cwise_ops_common.h",
            "https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/losses.py",
            "https://github.com/advisories/GHSA-8fvv-46hw-vpg3"
          ],
          "uuid": "219f690b-15da-441a-a76b-a0f65d8c4dd6"
        },
        {
          "affected_range": "\u003e=2.9.0,\u003c2.9.3||==2.10.0",
          "affected_versions": "All versions starting from 2.9.0 before 2.9.3, version 2.10.0",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-131",
            "CWE-937"
          ],
          "date": "2022-11-22",
          "description": "TensorFlow is an open source platform for machine learning. `tf.keras.losses.poisson` receives a `y_pred` and `y_true` that are passed through `functor::mul` in `BinaryOp`. If the resulting dimensions overflow an `int32`, TensorFlow will crash due to a size mismatch during broadcast assignment. We have patched the issue in GitHub commit c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1 and 2.9.3, as these are also affected and still in supported range. However, we will not cherrypick this commit into TensorFlow 2.8.x, as it depends on Eigen behavior that changed between 2.8 and 2.9.",
          "fixed_versions": [
            "2.9.3",
            "2.10.1"
          ],
          "identifier": "CVE-2022-41887",
          "identifiers": [
            "CVE-2022-41887",
            "GHSA-8fvv-46hw-vpg3"
          ],
          "not_impacted": "All versions before 2.9.0, all versions starting from 2.9.3 before 2.10.0, all versions after 2.10.0",
          "package_slug": "pypi/tensorflow",
          "pubdate": "2022-11-18",
          "solution": "Upgrade to versions 2.9.3, 2.10.1 or above.",
          "title": "Incorrect Calculation of Buffer Size",
          "urls": [
            "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-8fvv-46hw-vpg3",
            "https://nvd.nist.gov/vuln/detail/CVE-2022-41887",
            "https://github.com/tensorflow/tensorflow/commit/c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c",
            "https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/cwise_ops_common.h",
            "https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/losses.py",
            "https://github.com/advisories/GHSA-8fvv-46hw-vpg3"
          ],
          "uuid": "b337c069-8d2b-406c-9fbb-6d14bfad1411"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:google:tensorflow:2.10.0:*:*:*:*:*:*:*",
                "cpe_name": [],
                "vulnerable": true
              },
              {
                "cpe23Uri": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
                "cpe_name": [],
                "versionEndExcluding": "2.9.3",
                "versionStartIncluding": "2.9.0",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "security-advisories@github.com",
          "ID": "CVE-2022-41887"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "TensorFlow is an open source platform for machine learning. `tf.keras.losses.poisson` receives a `y_pred` and `y_true` that are passed through `functor::mul` in `BinaryOp`. If the resulting dimensions overflow an `int32`, TensorFlow will crash due to a size mismatch during broadcast assignment. We have patched the issue in GitHub commit c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1 and 2.9.3, as these are also affected and still in supported range. However, we will not cherrypick this commit into TensorFlow 2.8.x, as it depends on Eigen behavior that changed between 2.8 and 2.9."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-131"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/tensorflow/tensorflow/commit/c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c",
              "refsource": "MISC",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/tensorflow/tensorflow/commit/c5b30379ba87cbe774b08ac50c1f6d36df4ebb7c"
            },
            {
              "name": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-8fvv-46hw-vpg3",
              "refsource": "CONFIRM",
              "tags": [
                "Exploit",
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-8fvv-46hw-vpg3"
            },
            {
              "name": "https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/losses.py",
              "refsource": "MISC",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/losses.py"
            },
            {
              "name": "https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/cwise_ops_common.h",
              "refsource": "MISC",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/cwise_ops_common.h"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "NONE",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "exploitabilityScore": 3.9,
          "impactScore": 3.6
        }
      },
      "lastModifiedDate": "2022-11-22T21:55Z",
      "publishedDate": "2022-11-18T22:15Z"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…