{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: cfg80211: fix buffer overflow in elem comparison\n\nFor vendor elements, the code here assumes that 5 octets\nare present without checking. Since the element itself is\nalready checked to fit, we only need to check the length."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "net/wireless/scan.c"
               ],
               "versions": [
                  {
                     "version": "0b8fb8235be8",
                     "lessThan": "f5c2ec288a86",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "0b8fb8235be8",
                     "lessThan": "9e6b79a3cd17",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "0b8fb8235be8",
                     "lessThan": "88a6fe370788",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "0b8fb8235be8",
                     "lessThan": "391cb8725536",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "0b8fb8235be8",
                     "lessThan": "9f16b5c82a02",
                     "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/wireless/scan.c"
               ],
               "versions": [
                  {
                     "version": "5.1",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "5.1",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.226",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.158",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.82",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.0.12",
                     "lessThanOrEqual": "6.0.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/f5c2ec288a865dbe3706b09bed12302e9f6d696b"
            },
            {
               "url": "https://git.kernel.org/stable/c/9e6b79a3cd17620d467311b30d56f2648f6880aa"
            },
            {
               "url": "https://git.kernel.org/stable/c/88a6fe3707888bd1893e9741157a7035c4159ab6"
            },
            {
               "url": "https://git.kernel.org/stable/c/391cb872553627bdcf236c03ee7d5adb275e37e1"
            },
            {
               "url": "https://git.kernel.org/stable/c/9f16b5c82a025cd4c864737409234ddc44fb166a"
            }
         ],
         "title": "wifi: cfg80211: fix buffer overflow in elem comparison",
         "x_generator": {
            "engine": "bippy-c9c4e1df01b2"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2022-49023",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
