{
   "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: iwlwifi: mvm: check n_ssids before accessing the ssids\n\nIn some versions of cfg80211, the ssids poinet might be a valid one even\nthough n_ssids is 0. Accessing the pointer in this case will cuase an\nout-of-bound access. Fix this by checking n_ssids first."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/net/wireless/intel/iwlwifi/mvm/scan.c"
               ],
               "versions": [
                  {
                     "version": "c1a7515393e4",
                     "lessThan": "3c4771091ea8",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "c1a7515393e4",
                     "lessThan": "f777792952d0",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "c1a7515393e4",
                     "lessThan": "9e719ae3abad",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "c1a7515393e4",
                     "lessThan": "29a18d56bd64",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "c1a7515393e4",
                     "lessThan": "62e007bdeb91",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "c1a7515393e4",
                     "lessThan": "60d62757df30",
                     "status": "affected",
                     "versionType": "git"
                  }
               ]
            },
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "affected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/net/wireless/intel/iwlwifi/mvm/scan.c"
               ],
               "versions": [
                  {
                     "version": "4.17",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "4.17",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.221",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.162",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.95",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.35",
                     "lessThanOrEqual": "6.6.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.9.6",
                     "lessThanOrEqual": "6.9.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.10",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/3c4771091ea8016c8601399078916f722dd8833b"
            },
            {
               "url": "https://git.kernel.org/stable/c/f777792952d03bbaf8329fdfa99393a5a33e2640"
            },
            {
               "url": "https://git.kernel.org/stable/c/9e719ae3abad60e245ce248ba3f08148f375a614"
            },
            {
               "url": "https://git.kernel.org/stable/c/29a18d56bd64b95bd10bda4afda512558471382a"
            },
            {
               "url": "https://git.kernel.org/stable/c/62e007bdeb91c6879a4652c3426aef1cd9d2937b"
            },
            {
               "url": "https://git.kernel.org/stable/c/60d62757df30b74bf397a2847a6db7385c6ee281"
            }
         ],
         "title": "wifi: iwlwifi: mvm: check n_ssids before accessing the ssids",
         "x_generator": {
            "engine": "bippy-c9c4e1df01b2"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-40929",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
