{"id":"CVE-2022-50305","summary":"ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove()\n\nsof_es8336_remove() calls cancel_delayed_work(). However, that\nfunction does not wait until the work function finishes. This\nmeans that the callback function may still be running after\nthe driver's remove function has finished, which would result\nin a use-after-free.\n\nFix by calling cancel_delayed_work_sync(), which ensures that\nthe work is properly cancelled, no longer running, and unable\nto re-schedule itself.","modified":"2026-04-02T08:28:24.149450Z","published":"2025-09-15T14:46:00.558Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50305.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1b41beaa7a58467505ec3023af8aad74f878b888"},{"type":"WEB","url":"https://git.kernel.org/stable/c/390a1a98288a53b2e7555097d83c6e55d579b166"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b85102a3aa3810a09eb55692e8cd6ffbb304e57d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50305.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50305"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b60ee210a76cabdc2dd5396de299a1860b4945cd"},{"fixed":"b85102a3aa3810a09eb55692e8cd6ffbb304e57d"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"89cdb224f2abe37ec4ac21ba0d9ddeb5a6a9cf68"},{"fixed":"390a1a98288a53b2e7555097d83c6e55d579b166"},{"fixed":"1b41beaa7a58467505ec3023af8aad74f878b888"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50305.json"}}],"schema_version":"1.7.5"}