{
   "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: libertas: fix some memleaks in lbs_allocate_cmd_buffer()\n\nIn the for statement of lbs_allocate_cmd_buffer(), if the allocation of\ncmdarray[i].cmdbuf fails, both cmdarray and cmdarray[i].cmdbuf needs to\nbe freed. Otherwise, there will be memleaks in lbs_allocate_cmd_buffer()."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/net/wireless/marvell/libertas/cmd.c"
               ],
               "versions": [
                  {
                     "version": "876c9d3aeb98",
                     "lessThan": "96481624fb5a",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "876c9d3aeb98",
                     "lessThan": "bea9573c795a",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "876c9d3aeb98",
                     "lessThan": "f0dd27314c7a",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "876c9d3aeb98",
                     "lessThan": "e888c4461e10",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "876c9d3aeb98",
                     "lessThan": "4d99d267da34",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "876c9d3aeb98",
                     "lessThan": "da10f6b7918a",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "876c9d3aeb98",
                     "lessThan": "d219724d4b0d",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "876c9d3aeb98",
                     "lessThan": "8e243ac649c1",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "876c9d3aeb98",
                     "lessThan": "5f0e4aede01c",
                     "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/marvell/libertas/cmd.c"
               ],
               "versions": [
                  {
                     "version": "2.6.22",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "2.6.22",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.311",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.273",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.214",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.153",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.83",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.23",
                     "lessThanOrEqual": "6.6.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.7.11",
                     "lessThanOrEqual": "6.7.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.8.2",
                     "lessThanOrEqual": "6.8.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.9",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/96481624fb5a6319079fb5059e46dbce43a90186"
            },
            {
               "url": "https://git.kernel.org/stable/c/bea9573c795acec5614d4ac2dcc7b3b684cea5bf"
            },
            {
               "url": "https://git.kernel.org/stable/c/f0dd27314c7afe34794c2aa19dd6f2d30eb23bc7"
            },
            {
               "url": "https://git.kernel.org/stable/c/e888c4461e109f7b93c3522afcbbaa5a8fdf29d2"
            },
            {
               "url": "https://git.kernel.org/stable/c/4d99d267da3415db2124029cb5a6d2d955ca43f9"
            },
            {
               "url": "https://git.kernel.org/stable/c/da10f6b7918abd5b4bc5c9cb66f0fc6763ac48f3"
            },
            {
               "url": "https://git.kernel.org/stable/c/d219724d4b0ddb8ec7dfeaed5989f23edabaf591"
            },
            {
               "url": "https://git.kernel.org/stable/c/8e243ac649c10922a6b4855170eaefe4c5b3faab"
            },
            {
               "url": "https://git.kernel.org/stable/c/5f0e4aede01cb01fa633171f0533affd25328c3a"
            }
         ],
         "title": "wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer()",
         "x_generator": {
            "engine": "bippy-a5840b7849dd"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-35828",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
