# CVE-2022-50305: ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove()

- 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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-15T14:46:00.558Z
- Modified: 2026-11-05T20:17:33.410Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from b60ee210a76cabdc2dd5396de299a1860b4945cd before b85102a3aa3810a09eb55692e8cd6ffbb304e57d; from 89cdb224f2abe37ec4ac21ba0d9ddeb5a6a9cf68 before 390a1a98288a53b2e7555097d83c6e55d579b166; from 89cdb224f2abe37ec4ac21ba0d9ddeb5a6a9cf68 before 1b41beaa7a58467505ec3023af8aad74f878b888; from 6.0.11 before 6.0.16; 6.1 (not affected: before 6.1; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 6.0.11 before 6.0.16; from 6.1.1 before 6.1.2; 6.1

## References

- <https://git.kernel.org/stable/c/b85102a3aa3810a09eb55692e8cd6ffbb304e57d> (patch)
- <https://git.kernel.org/stable/c/390a1a98288a53b2e7555097d83c6e55d579b166> (patch)
- <https://git.kernel.org/stable/c/1b41beaa7a58467505ec3023af8aad74f878b888> (patch)

## Sources

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

---

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