CVE-2022-49275 (GCVE-0-2022-49275)

Vulnerability from cvelistv5 – Published: 2025-02-26 01:56 – Updated: 2025-05-04 08:33
VLAI?
Title
can: m_can: m_can_tx_handler(): fix use after free of skb
Summary
In the Linux kernel, the following vulnerability has been resolved: can: m_can: m_can_tx_handler(): fix use after free of skb can_put_echo_skb() will clone skb then free the skb. Move the can_put_echo_skb() for the m_can version 3.0.x directly before the start of the xmit in hardware, similar to the 3.1.x branch.
CWE
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 80646733f11c2e9de3b6339f7e635047e6087280 , < d93ed9aff64968f4cdad690712eb4f48ae537bde (git)
Affected: 80646733f11c2e9de3b6339f7e635047e6087280 , < d3892a747ab16b1eb6593a19d29f62c3b3f020ac (git)
Affected: 80646733f11c2e9de3b6339f7e635047e6087280 , < 7728d937ec403a1ceff9483023252d2cb8777f81 (git)
Affected: 80646733f11c2e9de3b6339f7e635047e6087280 , < 08d90846e438ac22dc56fc49ec0b0d195831c5ed (git)
Affected: 80646733f11c2e9de3b6339f7e635047e6087280 , < 869016a2938ac44f7b2fb7fc22c89edad99eb9b3 (git)
Affected: 80646733f11c2e9de3b6339f7e635047e6087280 , < f43e64076ff1b1dcb893fb77ad1204105f710a29 (git)
Affected: 80646733f11c2e9de3b6339f7e635047e6087280 , < 4db7d6f481990dd179a9ee7126dc7aa31ea4fff3 (git)
Affected: 80646733f11c2e9de3b6339f7e635047e6087280 , < 31417073493f302d26ab66b3abc098d43227b835 (git)
Affected: 80646733f11c2e9de3b6339f7e635047e6087280 , < 2e8e79c416aae1de224c0f1860f2e3350fa171f8 (git)
Create a notification for this product.
    Linux Linux Affected: 3.18
Unaffected: 0 , < 3.18 (semver)
Unaffected: 4.9.324 , ≤ 4.9.* (semver)
Unaffected: 4.14.289 , ≤ 4.14.* (semver)
Unaffected: 4.19.253 , ≤ 4.19.* (semver)
Unaffected: 5.4.207 , ≤ 5.4.* (semver)
Unaffected: 5.10.110 , ≤ 5.10.* (semver)
Unaffected: 5.15.33 , ≤ 5.15.* (semver)
Unaffected: 5.16.19 , ≤ 5.16.* (semver)
Unaffected: 5.17.2 , ≤ 5.17.* (semver)
Unaffected: 5.18 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 7.8,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "HIGH",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2022-49275",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-03-04T18:03:19.289491Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-416",
                "description": "CWE-416 Use After Free",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-03-04T18:07:17.587Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/can/m_can/m_can.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "d93ed9aff64968f4cdad690712eb4f48ae537bde",
              "status": "affected",
              "version": "80646733f11c2e9de3b6339f7e635047e6087280",
              "versionType": "git"
            },
            {
              "lessThan": "d3892a747ab16b1eb6593a19d29f62c3b3f020ac",
              "status": "affected",
              "version": "80646733f11c2e9de3b6339f7e635047e6087280",
              "versionType": "git"
            },
            {
              "lessThan": "7728d937ec403a1ceff9483023252d2cb8777f81",
              "status": "affected",
              "version": "80646733f11c2e9de3b6339f7e635047e6087280",
              "versionType": "git"
            },
            {
              "lessThan": "08d90846e438ac22dc56fc49ec0b0d195831c5ed",
              "status": "affected",
              "version": "80646733f11c2e9de3b6339f7e635047e6087280",
              "versionType": "git"
            },
            {
              "lessThan": "869016a2938ac44f7b2fb7fc22c89edad99eb9b3",
              "status": "affected",
              "version": "80646733f11c2e9de3b6339f7e635047e6087280",
              "versionType": "git"
            },
            {
              "lessThan": "f43e64076ff1b1dcb893fb77ad1204105f710a29",
              "status": "affected",
              "version": "80646733f11c2e9de3b6339f7e635047e6087280",
              "versionType": "git"
            },
            {
              "lessThan": "4db7d6f481990dd179a9ee7126dc7aa31ea4fff3",
              "status": "affected",
              "version": "80646733f11c2e9de3b6339f7e635047e6087280",
              "versionType": "git"
            },
            {
              "lessThan": "31417073493f302d26ab66b3abc098d43227b835",
              "status": "affected",
              "version": "80646733f11c2e9de3b6339f7e635047e6087280",
              "versionType": "git"
            },
            {
              "lessThan": "2e8e79c416aae1de224c0f1860f2e3350fa171f8",
              "status": "affected",
              "version": "80646733f11c2e9de3b6339f7e635047e6087280",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/can/m_can/m_can.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.18"
            },
            {
              "lessThan": "3.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.324",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.289",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.253",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.207",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.110",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.33",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.16.*",
              "status": "unaffected",
              "version": "5.16.19",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.17.*",
              "status": "unaffected",
              "version": "5.17.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.18",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.324",
                  "versionStartIncluding": "3.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.289",
                  "versionStartIncluding": "3.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.253",
                  "versionStartIncluding": "3.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.207",
                  "versionStartIncluding": "3.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.110",
                  "versionStartIncluding": "3.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.33",
                  "versionStartIncluding": "3.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.16.19",
                  "versionStartIncluding": "3.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.17.2",
                  "versionStartIncluding": "3.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18",
                  "versionStartIncluding": "3.18",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncan: m_can: m_can_tx_handler(): fix use after free of skb\n\ncan_put_echo_skb() will clone skb then free the skb. Move the\ncan_put_echo_skb() for the m_can version 3.0.x directly before the\nstart of the xmit in hardware, similar to the 3.1.x branch."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:33:58.443Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/d93ed9aff64968f4cdad690712eb4f48ae537bde"
        },
        {
          "url": "https://git.kernel.org/stable/c/d3892a747ab16b1eb6593a19d29f62c3b3f020ac"
        },
        {
          "url": "https://git.kernel.org/stable/c/7728d937ec403a1ceff9483023252d2cb8777f81"
        },
        {
          "url": "https://git.kernel.org/stable/c/08d90846e438ac22dc56fc49ec0b0d195831c5ed"
        },
        {
          "url": "https://git.kernel.org/stable/c/869016a2938ac44f7b2fb7fc22c89edad99eb9b3"
        },
        {
          "url": "https://git.kernel.org/stable/c/f43e64076ff1b1dcb893fb77ad1204105f710a29"
        },
        {
          "url": "https://git.kernel.org/stable/c/4db7d6f481990dd179a9ee7126dc7aa31ea4fff3"
        },
        {
          "url": "https://git.kernel.org/stable/c/31417073493f302d26ab66b3abc098d43227b835"
        },
        {
          "url": "https://git.kernel.org/stable/c/2e8e79c416aae1de224c0f1860f2e3350fa171f8"
        }
      ],
      "title": "can: m_can: m_can_tx_handler(): fix use after free of skb",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49275",
    "datePublished": "2025-02-26T01:56:20.066Z",
    "dateReserved": "2025-02-26T01:49:39.298Z",
    "dateUpdated": "2025-05-04T08:33:58.443Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 7.8, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"HIGH\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-49275\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-03-04T18:03:19.289491Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-416\", \"description\": \"CWE-416 Use After Free\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-03-04T18:03:20.559Z\"}}], \"cna\": {\"title\": \"can: m_can: m_can_tx_handler(): fix use after free of skb\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"80646733f11c2e9de3b6339f7e635047e6087280\", \"lessThan\": \"d93ed9aff64968f4cdad690712eb4f48ae537bde\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"80646733f11c2e9de3b6339f7e635047e6087280\", \"lessThan\": \"d3892a747ab16b1eb6593a19d29f62c3b3f020ac\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"80646733f11c2e9de3b6339f7e635047e6087280\", \"lessThan\": \"7728d937ec403a1ceff9483023252d2cb8777f81\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"80646733f11c2e9de3b6339f7e635047e6087280\", \"lessThan\": \"08d90846e438ac22dc56fc49ec0b0d195831c5ed\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"80646733f11c2e9de3b6339f7e635047e6087280\", \"lessThan\": \"869016a2938ac44f7b2fb7fc22c89edad99eb9b3\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"80646733f11c2e9de3b6339f7e635047e6087280\", \"lessThan\": \"f43e64076ff1b1dcb893fb77ad1204105f710a29\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"80646733f11c2e9de3b6339f7e635047e6087280\", \"lessThan\": \"4db7d6f481990dd179a9ee7126dc7aa31ea4fff3\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"80646733f11c2e9de3b6339f7e635047e6087280\", \"lessThan\": \"31417073493f302d26ab66b3abc098d43227b835\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"80646733f11c2e9de3b6339f7e635047e6087280\", \"lessThan\": \"2e8e79c416aae1de224c0f1860f2e3350fa171f8\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/net/can/m_can/m_can.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"3.18\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"3.18\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"4.9.324\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.9.*\"}, {\"status\": \"unaffected\", \"version\": \"4.14.289\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.14.*\"}, {\"status\": \"unaffected\", \"version\": \"4.19.253\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.19.*\"}, {\"status\": \"unaffected\", \"version\": \"5.4.207\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.110\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.33\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"5.16.19\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.16.*\"}, {\"status\": \"unaffected\", \"version\": \"5.17.2\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.17.*\"}, {\"status\": \"unaffected\", \"version\": \"5.18\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/net/can/m_can/m_can.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/d93ed9aff64968f4cdad690712eb4f48ae537bde\"}, {\"url\": \"https://git.kernel.org/stable/c/d3892a747ab16b1eb6593a19d29f62c3b3f020ac\"}, {\"url\": \"https://git.kernel.org/stable/c/7728d937ec403a1ceff9483023252d2cb8777f81\"}, {\"url\": \"https://git.kernel.org/stable/c/08d90846e438ac22dc56fc49ec0b0d195831c5ed\"}, {\"url\": \"https://git.kernel.org/stable/c/869016a2938ac44f7b2fb7fc22c89edad99eb9b3\"}, {\"url\": \"https://git.kernel.org/stable/c/f43e64076ff1b1dcb893fb77ad1204105f710a29\"}, {\"url\": \"https://git.kernel.org/stable/c/4db7d6f481990dd179a9ee7126dc7aa31ea4fff3\"}, {\"url\": \"https://git.kernel.org/stable/c/31417073493f302d26ab66b3abc098d43227b835\"}, {\"url\": \"https://git.kernel.org/stable/c/2e8e79c416aae1de224c0f1860f2e3350fa171f8\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncan: m_can: m_can_tx_handler(): fix use after free of skb\\n\\ncan_put_echo_skb() will clone skb then free the skb. Move the\\ncan_put_echo_skb() for the m_can version 3.0.x directly before the\\nstart of the xmit in hardware, similar to the 3.1.x branch.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-02-26T01:56:20.066Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-49275\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-03-04T18:07:17.587Z\", \"dateReserved\": \"2025-02-26T01:49:39.298Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2025-02-26T01:56:20.066Z\", \"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…