media: airspy: fix memory leak in airspy probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: airspy: fix memory leak in airspy probe
The commit ca9dc8d06ab6 ("media: airspy: respect the DMA coherency rules") moves variable buf from stack to heap, however, it only frees buf in the error handling code, missing deallocation in the success path.
Fix this by freeing buf in the success path since this variable does not have any references in other code.
From the CVE record · Linux
The Linux kernel’s airspy probe leaks a heap-allocated buffer on the successful probe path. The input does not specify whether an attacker can trigger the leak or what access or interaction would be required.
Engineers running the Linux kernel with the airspy driver should check their kernel; affected versions are not specified.