What’s Vulnerable › Vulnerabilities
CVE-2022-50305: ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove()
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-09-15 · updated 2026-06-17
- Weakness: CWE-416
Description
In the Linux kernel, the following vulnerability has been resolved: ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove() sof_es8336_remove() calls cancel_delayed_work(). However, that function does not wait until the work function finishes. This means that the callback function may still be running after the driver's remove function has finished, which would result in a use-after-free. Fix by calling cancel_delayed_work_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself.
Affected products
- Linux kernel: from 6.0.11 before 6.0.16; from 6.1.1 before 6.1.2; 6.1, 6.1-rc6, 6.1-rc7, 6.1-rc8 — fixed in 6.0.16, 6.1.2
How to fix
Upgrade to a fixed version: Linux kernel 6.0.16, 6.1.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/1b41beaa7a58467505ec3023af8aad74f878b888
- https://git.kernel.org/stable/c/390a1a98288a53b2e7555097d83c6e55d579b166
- https://git.kernel.org/stable/c/b85102a3aa3810a09eb55692e8cd6ffbb304e57d
Get alerted when CVE-2022-50305 or the next vulnerability affects your stack