Bug 2395348 (CVE-2022-50305) - CVE-2022-50305 kernel: ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove()
Summary: CVE-2022-50305 kernel: ASoC: sof_es8336: fix possible use-after-free in sof_e...
Keywords:
Status: NEW
Alias: CVE-2022-50305
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-15 15:08 UTC by OSIDB Bzimport
Modified: 2025-09-18 16:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-15 15:08:54 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.