# CVE-2022-50115: ASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.30%, higher than 15% of CVEs (2026-11-30)
- Published: 2025-06-18T11:02:46.759Z
- Modified: 2026-06-17T05:22:47.430Z
- Weaknesses: CWE-415
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from b5cee8feb1d482a9d07b677f4f2f9565bacda53e before 8463986b54295e6b65ddf2b7c65627d01ce7643b; from b5cee8feb1d482a9d07b677f4f2f9565bacda53e before c2eddfcafcffaf1b9245ea0dde9143bbfb47d5d1; from b5cee8feb1d482a9d07b677f4f2f9565bacda53e before d5bd47f3ca124058a8e87eae4508afeda2132611; 5.18 (not affected: before 5.18; from 5.18.18 up to 5.18.*; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.18 before 5.18.18; from 5.19 before 5.19.2

## References

- <https://git.kernel.org/stable/c/8463986b54295e6b65ddf2b7c65627d01ce7643b> (patch)
- <https://git.kernel.org/stable/c/c2eddfcafcffaf1b9245ea0dde9143bbfb47d5d1> (patch)
- <https://git.kernel.org/stable/c/d5bd47f3ca124058a8e87eae4508afeda2132611> (patch)

## Sources

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

---

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