CVE-2022-50326

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50326
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50326.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50326
Downstream
Published
2025-09-15T14:49:24Z
Modified
2025-10-16T08:13:01.349652Z
Summary
media: airspy: fix memory leak in airspy probe
Details

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.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ca9dc8d06ab64543a6a31adac5003349c5671218
Fixed
f4285dd02b6b2ca3435b65fb62c053dd9408fd71
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ca9dc8d06ab64543a6a31adac5003349c5671218
Fixed
23bc5eb55f8c9607965c20d9ddcc13cb1ae59568

Affected versions

v5.*

v5.19
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8

v6.*

v6.0
v6.0-rc1
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.0.1
v6.0.2

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.0.0
Fixed
6.0.3