# CVE-2024-35828: wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-05-17T13:41:12.702Z
- Modified: 2026-10-15T01:17:48.333Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172 before 96481624fb5a6319079fb5059e46dbce43a90186; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172 before bea9573c795acec5614d4ac2dcc7b3b684cea5bf; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172 before f0dd27314c7afe34794c2aa19dd6f2d30eb23bc7; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172 before e888c4461e109f7b93c3522afcbbaa5a8fdf29d2; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172 before 4d99d267da3415db2124029cb5a6d2d955ca43f9; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172 before da10f6b7918abd5b4bc5c9cb66f0fc6763ac48f3; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172 before d219724d4b0ddb8ec7dfeaed5989f23edabaf591; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172 before 8e243ac649c10922a6b4855170eaefe4c5b3faab; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172 before 5f0e4aede01cb01fa633171f0533affd25328c3a; 2.6.22 (not affected: before 2.6.22; from 4.19.311 up to 4.19.*; from 5.4.273 up to 5.4.*; from 5.10.214 up to 5.10.*; from 5.15.153 up to 5.15.*; from 6.1.83 up to 6.1.*; from 6.6.23 up to 6.6.*; from 6.7.11 up to 6.7.*; from 6.8.2 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 2.6.22 before 4.19.311; from 4.20 before 5.4.273; from 5.5 before 5.10.214; from 5.11 before 5.15.153; from 5.16 before 6.1.83; from 6.2 before 6.6.23; from 6.7 before 6.7.11; from 6.8 before 6.8.2
- debian debian_linux: 10.0

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (mailing-list)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html> (mailing-list)
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Sources

- CVE List: [CVE-2024-35828](https://www.cve.org/CVERecord?id=CVE-2024-35828), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-35828](https://nvd.nist.gov/vuln/detail/CVE-2024-35828), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-35828 · Whole record: https://cve.day/CVE-2024-35828.json · Rebuilt by cve.day 2026-11-25T22:58:40.530Z
