Skip to main content
← All vulnerabilities
CVE-2022-50305

ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.0.16
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 6.0.11 · fixed in 6.0.16

  • Linux Linux

    6.1

References 3

git.kernel.org