Skip to content
Heist/ feed
Back to feed
UnratedFix available

wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer() In the for statement of lbs_allocate_cmd_buffer(), if the allocation of cmdarray[i].cmdbuf fails, both cmdarray and cmdarray[i].cmdbuf needs to be freed. Otherwise, there will be memleaks in lbs_allocate_cmd_buffer().

Products
Kernel
Affected versions
Not specified
Fixed versions
4.19.311, 5.10.214, 5.15.153, 5.4.273, 6.1.83, 6.6.23, 6.7.11, 6.8.2
CVEs
CVE-2024-35828
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:36 UTC · Revision 1

Source evidence

wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer()

core-osv · Original source

Published 17 May 2024, 13:41 UTC

In the Linux kernel, the following vulnerability has been resolved: wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer() In the for statement of lbs_allocate_cmd_buffer(), if the allocation of cmdarray[i].cmdbuf fails, both cmdarray and cmdarray[i].cmdbuf needs to be freed. Otherwise, there will be memleaks in lbs_allocate_cmd_buffer().

osv:CVE-2024-35828

Kernel

Fixed versions: 4.19.311, 5.4.273, 5.10.214, 5.15.153, 6.1.83, 6.6.23, 6.7.11, 6.8.2

Complete source record
{
  "id": "2f7b8d8f0a613218736648f10cd5d35f61695b07a777d70bdf4617cd94d33dca",
  "url": "https://osv.dev/vulnerability/CVE-2024-35828",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer() In the for statement of lbs_allocate_cmd_buffer(), if the allocation of cmdarray[i].cmdbuf fails, both cmdarray and cmdarray[i].cmdbuf needs to be freed. Otherwise, there will be memleaks in lbs_allocate_cmd_buffer().",
    "evidence": "osv:CVE-2024-35828",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.19.311",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.273",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.214",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.153",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.83",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.23",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.7.11",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.8.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-35828",
      "aliases": [
        "CVE-2024-35828"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "876c9d3aeb989cf1961f2c228d309ba5dcfb1172"
                },
                {
                  "fixed": "96481624fb5a6319079fb5059e46dbce43a90186"
                },
                {
                  "fixed": "bea9573c795acec5614d4ac2dcc7b3b684cea5bf"
                },
                {
                  "fixed": "f0dd27314c7afe34794c2aa19dd6f2d30eb23bc7"
                },
                {
                  "fixed": "e888c4461e109f7b93c3522afcbbaa5a8fdf29d2"
                },
                {
                  "fixed": "4d99d267da3415db2124029cb5a6d2d955ca43f9"
                },
                {
                  "fixed": "da10f6b7918abd5b4bc5c9cb66f0fc6763ac48f3"
                },
                {
                  "fixed": "d219724d4b0ddb8ec7dfeaed5989f23edabaf591"
                },
                {
                  "fixed": "8e243ac649c10922a6b4855170eaefe4c5b3faab"
                },
                {
                  "fixed": "5f0e4aede01cb01fa633171f0533affd25328c3a"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35828.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.22"
                },
                {
                  "fixed": "4.19.311"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.273"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.214"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.153"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.83"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.23"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.7.11"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.8.0"
                },
                {
                  "fixed": "6.8.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35828.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.815183343Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-265688.html",
        "https://git.kernel.org/stable/c/4d99d267da3415db2124029cb5a6d2d955ca43f9",
        "https://git.kernel.org/stable/c/5f0e4aede01cb01fa633171f0533affd25328c3a",
        "https://git.kernel.org/stable/c/8e243ac649c10922a6b4855170eaefe4c5b3faab",
        "https://git.kernel.org/stable/c/96481624fb5a6319079fb5059e46dbce43a90186",
        "https://git.kernel.org/stable/c/bea9573c795acec5614d4ac2dcc7b3b684cea5bf",
        "https://git.kernel.org/stable/c/d219724d4b0ddb8ec7dfeaed5989f23edabaf591",
        "https://git.kernel.org/stable/c/da10f6b7918abd5b4bc5c9cb66f0fc6763ac48f3",
        "https://git.kernel.org/stable/c/e888c4461e109f7b93c3522afcbbaa5a8fdf29d2",
        "https://git.kernel.org/stable/c/f0dd27314c7afe34794c2aa19dd6f2d30eb23bc7",
        "https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html",
        "https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35828.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-35828",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35828.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-35828",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 497460,
  "published_at": "2024-05-17T13:41:12.702+00:00"
}