CVE-2022-49942 (GCVE-0-2022-49942)

Vulnerability from cvelistv5 – Published: 2025-06-18 10:59 – Updated: 2025-06-18 10:59
VLAI?
Title
wifi: mac80211: Don't finalize CSA in IBSS mode if state is disconnected
Summary
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: Don't finalize CSA in IBSS mode if state is disconnected When we are not connected to a channel, sending channel "switch" announcement doesn't make any sense. The BSS list is empty in that case. This causes the for loop in cfg80211_get_bss() to be bypassed, so the function returns NULL (check line 1424 of net/wireless/scan.c), causing the WARN_ON() in ieee80211_ibss_csa_beacon() to get triggered (check line 500 of net/mac80211/ibss.c), which was consequently reported on the syzkaller dashboard. Thus, check if we have an existing connection before generating the CSA beacon in ieee80211_ibss_finish_csa().
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: cd7760e62c2ac8581f050b2d36501d1a60beaf83 , < cdb9a8da9b84800eb15506cd9363cf0cf059e677 (git)
Affected: cd7760e62c2ac8581f050b2d36501d1a60beaf83 , < 1691a48aef0a82d1754b9853dae7e3f5cacdf70b (git)
Affected: cd7760e62c2ac8581f050b2d36501d1a60beaf83 , < d9eb37db6a28b59a95a3461450ee209654c5f95b (git)
Affected: cd7760e62c2ac8581f050b2d36501d1a60beaf83 , < 66689c5c02acd4d76c28498fe220998610aec61e (git)
Affected: cd7760e62c2ac8581f050b2d36501d1a60beaf83 , < dd649b49219a0388cc10fc40e4c2ea681566a780 (git)
Affected: cd7760e62c2ac8581f050b2d36501d1a60beaf83 , < 552ba102a6898630a7d16887f29e606d6fabe508 (git)
Affected: cd7760e62c2ac8581f050b2d36501d1a60beaf83 , < 864e280cb3a9a0f5212b16ef5057c4e692f7039d (git)
Affected: cd7760e62c2ac8581f050b2d36501d1a60beaf83 , < 15bc8966b6d3a5b9bfe4c9facfa02f2b69b1e5f0 (git)
Create a notification for this product.
    Linux Linux Affected: 3.13
Unaffected: 0 , < 3.13 (semver)
Unaffected: 4.9.328 , ≤ 4.9.* (semver)
Unaffected: 4.14.293 , ≤ 4.14.* (semver)
Unaffected: 4.19.258 , ≤ 4.19.* (semver)
Unaffected: 5.4.213 , ≤ 5.4.* (semver)
Unaffected: 5.10.142 , ≤ 5.10.* (semver)
Unaffected: 5.15.66 , ≤ 5.15.* (semver)
Unaffected: 5.19.8 , ≤ 5.19.* (semver)
Unaffected: 6.0 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/mac80211/ibss.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "cdb9a8da9b84800eb15506cd9363cf0cf059e677",
              "status": "affected",
              "version": "cd7760e62c2ac8581f050b2d36501d1a60beaf83",
              "versionType": "git"
            },
            {
              "lessThan": "1691a48aef0a82d1754b9853dae7e3f5cacdf70b",
              "status": "affected",
              "version": "cd7760e62c2ac8581f050b2d36501d1a60beaf83",
              "versionType": "git"
            },
            {
              "lessThan": "d9eb37db6a28b59a95a3461450ee209654c5f95b",
              "status": "affected",
              "version": "cd7760e62c2ac8581f050b2d36501d1a60beaf83",
              "versionType": "git"
            },
            {
              "lessThan": "66689c5c02acd4d76c28498fe220998610aec61e",
              "status": "affected",
              "version": "cd7760e62c2ac8581f050b2d36501d1a60beaf83",
              "versionType": "git"
            },
            {
              "lessThan": "dd649b49219a0388cc10fc40e4c2ea681566a780",
              "status": "affected",
              "version": "cd7760e62c2ac8581f050b2d36501d1a60beaf83",
              "versionType": "git"
            },
            {
              "lessThan": "552ba102a6898630a7d16887f29e606d6fabe508",
              "status": "affected",
              "version": "cd7760e62c2ac8581f050b2d36501d1a60beaf83",
              "versionType": "git"
            },
            {
              "lessThan": "864e280cb3a9a0f5212b16ef5057c4e692f7039d",
              "status": "affected",
              "version": "cd7760e62c2ac8581f050b2d36501d1a60beaf83",
              "versionType": "git"
            },
            {
              "lessThan": "15bc8966b6d3a5b9bfe4c9facfa02f2b69b1e5f0",
              "status": "affected",
              "version": "cd7760e62c2ac8581f050b2d36501d1a60beaf83",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/mac80211/ibss.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.13"
            },
            {
              "lessThan": "3.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.328",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.293",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.258",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.213",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.142",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.66",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.8",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.328",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.293",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.258",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.213",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.142",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.66",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.8",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mac80211: Don\u0027t finalize CSA in IBSS mode if state is disconnected\n\nWhen we are not connected to a channel, sending channel \"switch\"\nannouncement doesn\u0027t make any sense.\n\nThe BSS list is empty in that case. This causes the for loop in\ncfg80211_get_bss() to be bypassed, so the function returns NULL\n(check line 1424 of net/wireless/scan.c), causing the WARN_ON()\nin ieee80211_ibss_csa_beacon() to get triggered (check line 500\nof net/mac80211/ibss.c), which was consequently reported on the\nsyzkaller dashboard.\n\nThus, check if we have an existing connection before generating\nthe CSA beacon in ieee80211_ibss_finish_csa()."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-06-18T10:59:57.610Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/cdb9a8da9b84800eb15506cd9363cf0cf059e677"
        },
        {
          "url": "https://git.kernel.org/stable/c/1691a48aef0a82d1754b9853dae7e3f5cacdf70b"
        },
        {
          "url": "https://git.kernel.org/stable/c/d9eb37db6a28b59a95a3461450ee209654c5f95b"
        },
        {
          "url": "https://git.kernel.org/stable/c/66689c5c02acd4d76c28498fe220998610aec61e"
        },
        {
          "url": "https://git.kernel.org/stable/c/dd649b49219a0388cc10fc40e4c2ea681566a780"
        },
        {
          "url": "https://git.kernel.org/stable/c/552ba102a6898630a7d16887f29e606d6fabe508"
        },
        {
          "url": "https://git.kernel.org/stable/c/864e280cb3a9a0f5212b16ef5057c4e692f7039d"
        },
        {
          "url": "https://git.kernel.org/stable/c/15bc8966b6d3a5b9bfe4c9facfa02f2b69b1e5f0"
        }
      ],
      "title": "wifi: mac80211: Don\u0027t finalize CSA in IBSS mode if state is disconnected",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49942",
    "datePublished": "2025-06-18T10:59:57.610Z",
    "dateReserved": "2025-06-18T10:57:27.381Z",
    "dateUpdated": "2025-06-18T10:59:57.610Z",
    "state": "PUBLISHED"
  },
  "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…