wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 876c9d3aeb989cf1961f2c228d309ba5dcfb1172 · < da10f6b7918abd5b4bc5c9cb66f0fc6763ac48f3| No fix yet |
| Linux Linux |
|
|
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().
From the CVE record · Linux
The Linux kernel’s libertas Wi-Fi code can leak memory in lbs_allocate_cmd_buffer() if allocation of a command buffer fails. The input does not establish how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the libertas Wi-Fi code should check their versions; affected versions were not provided.