# CVE-2024-35828: wifi: libertas: fix some memleaks in lbs\_allocate\_cmd\_buffer()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2024-05-17T13:41:12.702Z
- **Modified:** 2026-10-15T01:17:48.333Z

## Who should check

- Anyone running Linux \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< 96481624fb5a6319079fb5059e46dbce43a90186; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< bea9573c795acec5614d4ac2dcc7b3b684cea5bf; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< f0dd27314c7afe34794c2aa19dd6f2d30eb23bc7; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< e888c4461e109f7b93c3522afcbbaa5a8fdf29d2; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< 4d99d267da3415db2124029cb5a6d2d955ca43f9; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< da10f6b7918abd5b4bc5c9cb66f0fc6763ac48f3; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< d219724d4b0ddb8ec7dfeaed5989f23edabaf591; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< 8e243ac649c10922a6b4855170eaefe4c5b3faab; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< 5f0e4aede01cb01fa633171f0533affd25328c3a
- Anyone running Linux 2.6.22

## Description

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().

## Affected and fixed versions

- Linux: \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< 96481624fb5a6319079fb5059e46dbce43a90186; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< bea9573c795acec5614d4ac2dcc7b3b684cea5bf; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< f0dd27314c7afe34794c2aa19dd6f2d30eb23bc7; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< e888c4461e109f7b93c3522afcbbaa5a8fdf29d2; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< 4d99d267da3415db2124029cb5a6d2d955ca43f9; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< da10f6b7918abd5b4bc5c9cb66f0fc6763ac48f3; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< d219724d4b0ddb8ec7dfeaed5989f23edabaf591; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< 8e243ac649c10922a6b4855170eaefe4c5b3faab; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< 5f0e4aede01cb01fa633171f0533affd25328c3a (cvelist)
- Linux: 2.6.22 (cvelist)

## Mitigation

- Upgrade Linux to 5f0e4aede01cb01fa633171f0533affd25328c3a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35828. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35828.md
Affected: Linux >= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, < 96481624fb5a6319079fb5059e46dbce43a90186; >= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, < bea9573c795acec5614d4ac2dcc7b3b684cea5bf; >= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, < f0dd27314c7afe34794c2aa19dd6f2d30eb23bc7; >= 876c9d3aeb989cf1961f2c2…
Fixed in: Linux 96481624fb5a6319079fb5059e46dbce43a90186, Linux 4d99d267da3415db2124029cb5a6d2d955ca43f9, Linux 8e243ac649c10922a6b4855170eaefe4c5b3faab, Linux 5f0e4aede01cb01fa633171f0533affd25328c3a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35828 being exploited?

There is no confirmed exploitation: CVE-2024-35828 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35828?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-35828?

Linux \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< 96481624fb5a6319079fb5059e46dbce43a90186; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< bea9573c795acec5614d4ac2dcc7b3b684cea5bf; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< f0dd27314c7afe34794c2aa19dd6f2d30eb23bc7; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< e888c4461e109f7b93c3522afcbbaa5a8fdf29d2; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< 4d99d267da3415db2124029cb5a6d2d955ca43f9; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< da10f6b7918abd5b4bc5c9cb66f0fc6763ac48f3; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< d219724d4b0ddb8ec7dfeaed5989f23edabaf591; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< 8e243ac649c10922a6b4855170eaefe4c5b3faab; \>= 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, \< 5f0e4aede01cb01fa633171f0533affd25328c3a; Linux 2.6.22.

### Is there a fix for CVE-2024-35828?

Yes. Fixed in Linux 96481624fb5a6319079fb5059e46dbce43a90186, Linux 4d99d267da3415db2124029cb5a6d2d955ca43f9, Linux 8e243ac649c10922a6b4855170eaefe4c5b3faab, Linux 5f0e4aede01cb01fa633171f0533affd25328c3a. Upgrade Linux to 5f0e4aede01cb01fa633171f0533affd25328c3a or later.

### How do I check if I'm affected by CVE-2024-35828?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/96481624fb5a6319079fb5059e46dbce43a90186>
- patch: <https://git.kernel.org/stable/c/bea9573c795acec5614d4ac2dcc7b3b684cea5bf>
- patch: <https://git.kernel.org/stable/c/f0dd27314c7afe34794c2aa19dd6f2d30eb23bc7>
- patch: <https://git.kernel.org/stable/c/e888c4461e109f7b93c3522afcbbaa5a8fdf29d2>
- patch: <https://git.kernel.org/stable/c/4d99d267da3415db2124029cb5a6d2d955ca43f9>
- patch: <https://git.kernel.org/stable/c/da10f6b7918abd5b4bc5c9cb66f0fc6763ac48f3>
- patch: <https://git.kernel.org/stable/c/d219724d4b0ddb8ec7dfeaed5989f23edabaf591>
- patch: <https://git.kernel.org/stable/c/8e243ac649c10922a6b4855170eaefe4c5b3faab>
- patch: <https://git.kernel.org/stable/c/5f0e4aede01cb01fa633171f0533affd25328c3a>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35828>

HTML: <https://flawdb.com/CVE-2024-35828> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35828>
