ASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes
In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes We have sanity checks for byte controls and if any of the fail the locally allocated scontrol->ipc_control_data is freed up, but not set to NULL. On a rollback path of the error the higher level code will also try to free the scontrol->ipc_control_data which will eventually going to lead to memory corruption as double freeing memory is not a good thing.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.18.18, 5.19.2
- CVEs
- CVE-2022-50115
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 19:51 UTC · Revision 1
Source evidence
ASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes
core-osv · Original sourcePublished 18 Jun 2025, 11:02 UTC
In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes We have sanity checks for byte controls and if any of the fail the locally allocated scontrol->ipc_control_data is freed up, but not set to NULL. On a rollback path of the error the higher level code will also try to free the scontrol->ipc_control_data which will eventually going to lead to memory corruption as double freeing memory is not a good thing.
osv:CVE-2022-50115
Kernel
Fixed versions: 5.18.18, 5.19.2
Complete source record
{
"id": "7fefc29b3052e3ca0f076e4da1314264a4812a0d8f1f146153899f72b0c37519",
"url": "https://osv.dev/vulnerability/CVE-2022-50115",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes",
"summary": "In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes We have sanity checks for byte controls and if any of the fail the locally allocated scontrol->ipc_control_data is freed up, but not set to NULL. On a rollback path of the error the higher level code will also try to free the scontrol->ipc_control_data which will eventually going to lead to memory corruption as double freeing memory is not a good thing.",
"evidence": "osv:CVE-2022-50115",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.18.18",
"evidence": "/affected/1/ranges"
},
{
"value": "5.19.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-50115",
"aliases": [
"CVE-2022-50115"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "b5cee8feb1d482a9d07b677f4f2f9565bacda53e"
},
{
"fixed": "8463986b54295e6b65ddf2b7c65627d01ce7643b"
},
{
"fixed": "c2eddfcafcffaf1b9245ea0dde9143bbfb47d5d1"
},
{
"fixed": "d5bd47f3ca124058a8e87eae4508afeda2132611"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50115.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.18.0"
},
{
"fixed": "5.18.18"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.19.0"
},
{
"fixed": "5.19.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50115.json"
}
}
],
"modified": "2026-10-28T02:30:23.236100889Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/8463986b54295e6b65ddf2b7c65627d01ce7643b",
"https://git.kernel.org/stable/c/c2eddfcafcffaf1b9245ea0dde9143bbfb47d5d1",
"https://git.kernel.org/stable/c/d5bd47f3ca124058a8e87eae4508afeda2132611",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50115.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50115",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50115.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50115",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 489418,
"published_at": "2025-06-18T11:02:46.759+00:00"
}