{"id":"CVE-2022-50115","state":"PUBLISHED","title":"ASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes\n\nWe have sanity checks for byte controls and if any of the fail the locally\nallocated scontrol->ipc_control_data is freed up, but not set to NULL.\n\nOn a rollback path of the error the higher level code will also try to free\nthe scontrol->ipc_control_data which will eventually going to lead to\nmemory corruption as double freeing memory is not a good thing.","publishedAt":"2025-06-18T11:02:46.759Z","updatedAt":"2026-05-11T19:13:08.168Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b5cee8feb1d482a9d07b677f4f2f9565bacda53e","status":"affected","lessThan":"8463986b54295e6b65ddf2b7c65627d01ce7643b","versionType":"git"},{"version":"b5cee8feb1d482a9d07b677f4f2f9565bacda53e","status":"affected","lessThan":"c2eddfcafcffaf1b9245ea0dde9143bbfb47d5d1","versionType":"git"},{"version":"b5cee8feb1d482a9d07b677f4f2f9565bacda53e","status":"affected","lessThan":"d5bd47f3ca124058a8e87eae4508afeda2132611","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/ipc3-topology.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"5.18.18","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19.2","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/ipc3-topology.c"]}],"references":["https://git.kernel.org/stable/c/8463986b54295e6b65ddf2b7c65627d01ce7643b","https://git.kernel.org/stable/c/c2eddfcafcffaf1b9245ea0dde9143bbfb47d5d1","https://git.kernel.org/stable/c/d5bd47f3ca124058a8e87eae4508afeda2132611"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50115.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50115","state":"PUBLISHED","datePublished":"2025-06-18T11:02:46.759Z","dateUpdated":"2026-05-11T19:13:08.168Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-06-18T10:57:27.415Z"},"containers":{"cna":{"title":"ASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes\n\nWe have sanity checks for byte controls and if any of the fail the locally\nallocated scontrol->ipc_control_data is freed up, but not set to NULL.\n\nOn a rollback path of the error the higher level code will also try to free\nthe scontrol->ipc_control_data which will eventually going to lead to\nmemory corruption as double freeing memory is not a good thing."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b5cee8feb1d482a9d07b677f4f2f9565bacda53e","status":"affected","lessThan":"8463986b54295e6b65ddf2b7c65627d01ce7643b","versionType":"git"},{"version":"b5cee8feb1d482a9d07b677f4f2f9565bacda53e","status":"affected","lessThan":"c2eddfcafcffaf1b9245ea0dde9143bbfb47d5d1","versionType":"git"},{"version":"b5cee8feb1d482a9d07b677f4f2f9565bacda53e","status":"affected","lessThan":"d5bd47f3ca124058a8e87eae4508afeda2132611","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/ipc3-topology.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"5.18.18","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19.2","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/ipc3-topology.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8463986b54295e6b65ddf2b7c65627d01ce7643b"},{"url":"https://git.kernel.org/stable/c/c2eddfcafcffaf1b9245ea0dde9143bbfb47d5d1"},{"url":"https://git.kernel.org/stable/c/d5bd47f3ca124058a8e87eae4508afeda2132611"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:13:08.168Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"5.18.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"5.19.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}