# CVE-2022-50326: media: airspy: fix memory leak in airspy probe

- 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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2025-09-15T14:49:24.523Z
- Modified: 2026-06-17T05:23:14.480Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from ca9dc8d06ab64543a6a31adac5003349c5671218 before f4285dd02b6b2ca3435b65fb62c053dd9408fd71; from ca9dc8d06ab64543a6a31adac5003349c5671218 before 23bc5eb55f8c9607965c20d9ddcc13cb1ae59568; 6.0 (not affected: before 6.0; from 6.0.3 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 6.0 before 6.0.3

## References

- <https://git.kernel.org/stable/c/f4285dd02b6b2ca3435b65fb62c053dd9408fd71> (patch)
- <https://git.kernel.org/stable/c/23bc5eb55f8c9607965c20d9ddcc13cb1ae59568> (patch)

## Sources

- CVE List: [CVE-2022-50326](https://www.cve.org/CVERecord?id=CVE-2022-50326), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50326](https://nvd.nist.gov/vuln/detail/CVE-2022-50326), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50326 · Whole record: https://cve.day/CVE-2022-50326.json · Rebuilt by cve.day 2026-11-25T22:58:21.166Z
