CVE-2022-49025 (GCVE-0-2022-49025)

Vulnerability from cvelistv5 – Published: 2024-10-21 20:06 – Updated: 2025-05-04 08:28
VLAI?
Title
net/mlx5e: Fix use-after-free when reverting termination table
Summary
In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix use-after-free when reverting termination table When having multiple dests with termination tables and second one or afterwards fails the driver reverts usage of term tables but doesn't reset the assignment in attr->dests[num_vport_dests].termtbl which case a use-after-free when releasing the rule. Fix by resetting the assignment of termtbl to null.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 10caabdaad5ace85577a453da97d1f8d3b944427 , < 0a2d73a77060c3cbdc6e801cd5d979d674cd404b (git)
Affected: 10caabdaad5ace85577a453da97d1f8d3b944427 , < 0d2f9d95d9fbe993f3c4bafb87d59897b0325aff (git)
Affected: 10caabdaad5ace85577a453da97d1f8d3b944427 , < 372eb550faa0757349040fd43f59483cbfdb2c0b (git)
Affected: 10caabdaad5ace85577a453da97d1f8d3b944427 , < e6d2d26a49c3a9cd46b232975e45236304810904 (git)
Affected: 10caabdaad5ace85577a453da97d1f8d3b944427 , < 52c795af04441d76f565c4634f893e5b553df2ae (git)
Create a notification for this product.
    Linux Linux Affected: 5.3
Unaffected: 0 , < 5.3 (semver)
Unaffected: 5.4.226 , ≤ 5.4.* (semver)
Unaffected: 5.10.158 , ≤ 5.10.* (semver)
Unaffected: 5.15.82 , ≤ 5.15.* (semver)
Unaffected: 6.0.12 , ≤ 6.0.* (semver)
Unaffected: 6.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2022-49025",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-10-22T13:12:03.785297Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-10-22T13:18:36.599Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "0a2d73a77060c3cbdc6e801cd5d979d674cd404b",
              "status": "affected",
              "version": "10caabdaad5ace85577a453da97d1f8d3b944427",
              "versionType": "git"
            },
            {
              "lessThan": "0d2f9d95d9fbe993f3c4bafb87d59897b0325aff",
              "status": "affected",
              "version": "10caabdaad5ace85577a453da97d1f8d3b944427",
              "versionType": "git"
            },
            {
              "lessThan": "372eb550faa0757349040fd43f59483cbfdb2c0b",
              "status": "affected",
              "version": "10caabdaad5ace85577a453da97d1f8d3b944427",
              "versionType": "git"
            },
            {
              "lessThan": "e6d2d26a49c3a9cd46b232975e45236304810904",
              "status": "affected",
              "version": "10caabdaad5ace85577a453da97d1f8d3b944427",
              "versionType": "git"
            },
            {
              "lessThan": "52c795af04441d76f565c4634f893e5b553df2ae",
              "status": "affected",
              "version": "10caabdaad5ace85577a453da97d1f8d3b944427",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.3"
            },
            {
              "lessThan": "5.3",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.158",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.82",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.226",
                  "versionStartIncluding": "5.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.158",
                  "versionStartIncluding": "5.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.82",
                  "versionStartIncluding": "5.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.12",
                  "versionStartIncluding": "5.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1",
                  "versionStartIncluding": "5.3",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: Fix use-after-free when reverting termination table\n\nWhen having multiple dests with termination tables and second one\nor afterwards fails the driver reverts usage of term tables but\ndoesn\u0027t reset the assignment in attr-\u003edests[num_vport_dests].termtbl\nwhich case a use-after-free when releasing the rule.\nFix by resetting the assignment of termtbl to null."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:28:19.128Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/0a2d73a77060c3cbdc6e801cd5d979d674cd404b"
        },
        {
          "url": "https://git.kernel.org/stable/c/0d2f9d95d9fbe993f3c4bafb87d59897b0325aff"
        },
        {
          "url": "https://git.kernel.org/stable/c/372eb550faa0757349040fd43f59483cbfdb2c0b"
        },
        {
          "url": "https://git.kernel.org/stable/c/e6d2d26a49c3a9cd46b232975e45236304810904"
        },
        {
          "url": "https://git.kernel.org/stable/c/52c795af04441d76f565c4634f893e5b553df2ae"
        }
      ],
      "title": "net/mlx5e: Fix use-after-free when reverting termination table",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49025",
    "datePublished": "2024-10-21T20:06:31.189Z",
    "dateReserved": "2024-08-22T01:27:53.650Z",
    "dateUpdated": "2025-05-04T08:28:19.128Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-49025\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-22T13:12:03.785297Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-22T13:12:07.218Z\"}}], \"cna\": {\"title\": \"net/mlx5e: Fix use-after-free when reverting termination table\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"10caabdaad5a\", \"lessThan\": \"0a2d73a77060\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"10caabdaad5a\", \"lessThan\": \"0d2f9d95d9fb\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"10caabdaad5a\", \"lessThan\": \"372eb550faa0\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"10caabdaad5a\", \"lessThan\": \"e6d2d26a49c3\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"10caabdaad5a\", \"lessThan\": \"52c795af0444\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.3\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.3\", \"versionType\": \"custom\"}, {\"status\": \"unaffected\", \"version\": \"5.4.226\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.158\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.82\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.0.12\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.0.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/0a2d73a77060c3cbdc6e801cd5d979d674cd404b\"}, {\"url\": \"https://git.kernel.org/stable/c/0d2f9d95d9fbe993f3c4bafb87d59897b0325aff\"}, {\"url\": \"https://git.kernel.org/stable/c/372eb550faa0757349040fd43f59483cbfdb2c0b\"}, {\"url\": \"https://git.kernel.org/stable/c/e6d2d26a49c3a9cd46b232975e45236304810904\"}, {\"url\": \"https://git.kernel.org/stable/c/52c795af04441d76f565c4634f893e5b553df2ae\"}], \"x_generator\": {\"engine\": \"bippy-c9c4e1df01b2\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet/mlx5e: Fix use-after-free when reverting termination table\\n\\nWhen having multiple dests with termination tables and second one\\nor afterwards fails the driver reverts usage of term tables but\\ndoesn\u0027t reset the assignment in attr-\u003edests[num_vport_dests].termtbl\\nwhich case a use-after-free when releasing the rule.\\nFix by resetting the assignment of termtbl to null.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-10-21T20:06:31.189Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-49025\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-10-22T13:18:36.599Z\", \"dateReserved\": \"2024-08-22T01:27:53.650Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T20:06:31.189Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

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…