CVE-2022-49416 (GCVE-0-2022-49416)

Vulnerability from cvelistv5 – Published: 2025-02-26 02:12 – Updated: 2025-05-04 08:37
VLAI?
Title
wifi: mac80211: fix use-after-free in chanctx code
Summary
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: fix use-after-free in chanctx code In ieee80211_vif_use_reserved_context(), when we have an old context and the new context's replace_state is set to IEEE80211_CHANCTX_REPLACE_NONE, we free the old context in ieee80211_vif_use_reserved_reassign(). Therefore, we cannot check the old_ctx anymore, so we should set it to NULL after this point. However, since the new_ctx replace state is clearly not IEEE80211_CHANCTX_REPLACES_OTHER, we're not going to do anything else in this function and can just return to avoid accessing the freed old_ctx.
CWE
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f , < 88cc8f963febe192d6ded9df7217f92f380b449a (git)
Affected: 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f , < 4ba81e794f0fad6234f644c2da1ae14d5b95e1c4 (git)
Affected: 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f , < 9f1e5cc85ad77e52f54049a94db0407445ae2a34 (git)
Affected: 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f , < 265bec4779a38b65e86a25120370f200822dfa76 (git)
Affected: 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f , < 6118bbdf69f4718b02d26bbcf2e497eb66004331 (git)
Affected: 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f , < b79110f2bf6022e60e590d2e094728a8eec3e79e (git)
Affected: 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f , < 82c8e7bbdd06c7ed58e22450cc5b37f33a25bb2c (git)
Affected: 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f , < 4f05a9e15edcdf5b97e0d86ab6ecd5f187289f6c (git)
Affected: 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f , < 2965c4cdf7ad9ce0796fac5e57debb9519ea721e (git)
Create a notification for this product.
    Linux Linux Affected: 3.17
Unaffected: 0 , < 3.17 (semver)
Unaffected: 4.9.318 , ≤ 4.9.* (semver)
Unaffected: 4.14.283 , ≤ 4.14.* (semver)
Unaffected: 4.19.247 , ≤ 4.19.* (semver)
Unaffected: 5.4.198 , ≤ 5.4.* (semver)
Unaffected: 5.10.121 , ≤ 5.10.* (semver)
Unaffected: 5.15.46 , ≤ 5.15.* (semver)
Unaffected: 5.17.14 , ≤ 5.17.* (semver)
Unaffected: 5.18.3 , ≤ 5.18.* (semver)
Unaffected: 5.19 , ≤ * (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-49416",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-02-27T18:16:18.774528Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-416",
                "description": "CWE-416 Use After Free",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-02-27T18:22:33.196Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/mac80211/chan.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "88cc8f963febe192d6ded9df7217f92f380b449a",
              "status": "affected",
              "version": "5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f",
              "versionType": "git"
            },
            {
              "lessThan": "4ba81e794f0fad6234f644c2da1ae14d5b95e1c4",
              "status": "affected",
              "version": "5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f",
              "versionType": "git"
            },
            {
              "lessThan": "9f1e5cc85ad77e52f54049a94db0407445ae2a34",
              "status": "affected",
              "version": "5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f",
              "versionType": "git"
            },
            {
              "lessThan": "265bec4779a38b65e86a25120370f200822dfa76",
              "status": "affected",
              "version": "5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f",
              "versionType": "git"
            },
            {
              "lessThan": "6118bbdf69f4718b02d26bbcf2e497eb66004331",
              "status": "affected",
              "version": "5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f",
              "versionType": "git"
            },
            {
              "lessThan": "b79110f2bf6022e60e590d2e094728a8eec3e79e",
              "status": "affected",
              "version": "5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f",
              "versionType": "git"
            },
            {
              "lessThan": "82c8e7bbdd06c7ed58e22450cc5b37f33a25bb2c",
              "status": "affected",
              "version": "5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f",
              "versionType": "git"
            },
            {
              "lessThan": "4f05a9e15edcdf5b97e0d86ab6ecd5f187289f6c",
              "status": "affected",
              "version": "5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f",
              "versionType": "git"
            },
            {
              "lessThan": "2965c4cdf7ad9ce0796fac5e57debb9519ea721e",
              "status": "affected",
              "version": "5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/mac80211/chan.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.17"
            },
            {
              "lessThan": "3.17",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.318",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.283",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.247",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.198",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.121",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.46",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.17.*",
              "status": "unaffected",
              "version": "5.17.14",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.18.*",
              "status": "unaffected",
              "version": "5.18.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.19",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.318",
                  "versionStartIncluding": "3.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.283",
                  "versionStartIncluding": "3.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.247",
                  "versionStartIncluding": "3.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.198",
                  "versionStartIncluding": "3.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.121",
                  "versionStartIncluding": "3.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.46",
                  "versionStartIncluding": "3.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.17.14",
                  "versionStartIncluding": "3.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18.3",
                  "versionStartIncluding": "3.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19",
                  "versionStartIncluding": "3.17",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mac80211: fix use-after-free in chanctx code\n\nIn ieee80211_vif_use_reserved_context(), when we have an\nold context and the new context\u0027s replace_state is set to\nIEEE80211_CHANCTX_REPLACE_NONE, we free the old context\nin ieee80211_vif_use_reserved_reassign(). Therefore, we\ncannot check the old_ctx anymore, so we should set it to\nNULL after this point.\n\nHowever, since the new_ctx replace state is clearly not\nIEEE80211_CHANCTX_REPLACES_OTHER, we\u0027re not going to do\nanything else in this function and can just return to\navoid accessing the freed old_ctx."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:37:12.553Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/88cc8f963febe192d6ded9df7217f92f380b449a"
        },
        {
          "url": "https://git.kernel.org/stable/c/4ba81e794f0fad6234f644c2da1ae14d5b95e1c4"
        },
        {
          "url": "https://git.kernel.org/stable/c/9f1e5cc85ad77e52f54049a94db0407445ae2a34"
        },
        {
          "url": "https://git.kernel.org/stable/c/265bec4779a38b65e86a25120370f200822dfa76"
        },
        {
          "url": "https://git.kernel.org/stable/c/6118bbdf69f4718b02d26bbcf2e497eb66004331"
        },
        {
          "url": "https://git.kernel.org/stable/c/b79110f2bf6022e60e590d2e094728a8eec3e79e"
        },
        {
          "url": "https://git.kernel.org/stable/c/82c8e7bbdd06c7ed58e22450cc5b37f33a25bb2c"
        },
        {
          "url": "https://git.kernel.org/stable/c/4f05a9e15edcdf5b97e0d86ab6ecd5f187289f6c"
        },
        {
          "url": "https://git.kernel.org/stable/c/2965c4cdf7ad9ce0796fac5e57debb9519ea721e"
        }
      ],
      "title": "wifi: mac80211: fix use-after-free in chanctx code",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49416",
    "datePublished": "2025-02-26T02:12:37.173Z",
    "dateReserved": "2025-02-26T02:08:31.568Z",
    "dateUpdated": "2025-05-04T08:37:12.553Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"cna\": {\"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-02-26T02:12:37.173Z\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nwifi: mac80211: fix use-after-free in chanctx code\\n\\nIn ieee80211_vif_use_reserved_context(), when we have an\\nold context and the new context\u0027s replace_state is set to\\nIEEE80211_CHANCTX_REPLACE_NONE, we free the old context\\nin ieee80211_vif_use_reserved_reassign(). Therefore, we\\ncannot check the old_ctx anymore, so we should set it to\\nNULL after this point.\\n\\nHowever, since the new_ctx replace state is clearly not\\nIEEE80211_CHANCTX_REPLACES_OTHER, we\u0027re not going to do\\nanything else in this function and can just return to\\navoid accessing the freed old_ctx.\"}], \"affected\": [{\"product\": \"Linux\", \"vendor\": \"Linux\", \"defaultStatus\": \"unaffected\", \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"programFiles\": [\"net/mac80211/chan.c\"], \"versions\": [{\"version\": \"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f\", \"lessThan\": \"88cc8f963febe192d6ded9df7217f92f380b449a\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f\", \"lessThan\": \"4ba81e794f0fad6234f644c2da1ae14d5b95e1c4\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f\", \"lessThan\": \"9f1e5cc85ad77e52f54049a94db0407445ae2a34\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f\", \"lessThan\": \"265bec4779a38b65e86a25120370f200822dfa76\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f\", \"lessThan\": \"6118bbdf69f4718b02d26bbcf2e497eb66004331\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f\", \"lessThan\": \"b79110f2bf6022e60e590d2e094728a8eec3e79e\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f\", \"lessThan\": \"82c8e7bbdd06c7ed58e22450cc5b37f33a25bb2c\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f\", \"lessThan\": \"4f05a9e15edcdf5b97e0d86ab6ecd5f187289f6c\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f\", \"lessThan\": \"2965c4cdf7ad9ce0796fac5e57debb9519ea721e\", \"status\": \"affected\", \"versionType\": \"git\"}]}, {\"product\": \"Linux\", \"vendor\": \"Linux\", \"defaultStatus\": \"affected\", \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"programFiles\": [\"net/mac80211/chan.c\"], \"versions\": [{\"version\": \"3.17\", \"status\": \"affected\"}, {\"version\": \"0\", \"lessThan\": \"3.17\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"4.9.318\", \"lessThanOrEqual\": \"4.9.*\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"4.14.283\", \"lessThanOrEqual\": \"4.14.*\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"4.19.247\", \"lessThanOrEqual\": \"4.19.*\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"5.4.198\", \"lessThanOrEqual\": \"5.4.*\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"5.10.121\", \"lessThanOrEqual\": \"5.10.*\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"5.15.46\", \"lessThanOrEqual\": \"5.15.*\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"5.17.14\", \"lessThanOrEqual\": \"5.17.*\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"5.18.3\", \"lessThanOrEqual\": \"5.18.*\", \"status\": \"unaffected\", \"versionType\": \"semver\"}, {\"version\": \"5.19\", \"lessThanOrEqual\": \"*\", \"status\": \"unaffected\", \"versionType\": \"original_commit_for_fix\"}]}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/88cc8f963febe192d6ded9df7217f92f380b449a\"}, {\"url\": \"https://git.kernel.org/stable/c/4ba81e794f0fad6234f644c2da1ae14d5b95e1c4\"}, {\"url\": \"https://git.kernel.org/stable/c/9f1e5cc85ad77e52f54049a94db0407445ae2a34\"}, {\"url\": \"https://git.kernel.org/stable/c/265bec4779a38b65e86a25120370f200822dfa76\"}, {\"url\": \"https://git.kernel.org/stable/c/6118bbdf69f4718b02d26bbcf2e497eb66004331\"}, {\"url\": \"https://git.kernel.org/stable/c/b79110f2bf6022e60e590d2e094728a8eec3e79e\"}, {\"url\": \"https://git.kernel.org/stable/c/82c8e7bbdd06c7ed58e22450cc5b37f33a25bb2c\"}, {\"url\": \"https://git.kernel.org/stable/c/4f05a9e15edcdf5b97e0d86ab6ecd5f187289f6c\"}, {\"url\": \"https://git.kernel.org/stable/c/2965c4cdf7ad9ce0796fac5e57debb9519ea721e\"}], \"title\": \"wifi: mac80211: fix use-after-free in chanctx code\", \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}}, \"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-49416\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-02-27T18:16:18.774528Z\"}}}], \"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-02-27T18:16:20.240Z\"}}]}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-49416\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"state\": \"PUBLISHED\", \"assignerShortName\": \"Linux\", \"dateReserved\": \"2025-02-26T02:08:31.568Z\", \"datePublished\": \"2025-02-26T02:12:37.173Z\", \"dateUpdated\": \"2025-02-27T18:22:33.196Z\"}",
      "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…