{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "b60ee210a76cabdc2dd5396de299a1860b4945cd"
            },
            {
              "fixed": "b85102a3aa3810a09eb55692e8cd6ffbb304e57d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "89cdb224f2abe37ec4ac21ba0d9ddeb5a6a9cf68"
            },
            {
              "fixed": "390a1a98288a53b2e7555097d83c6e55d579b166"
            },
            {
              "fixed": "1b41beaa7a58467505ec3023af8aad74f878b888"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50305.json"
  },
  "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.",
  "id": "CVE-2022-50305",
  "modified": "2026-04-01T23:09:33.706005088Z",
  "published": "2025-09-15T14:46:00.558Z",
  "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"
    }
  ],
  "schema_version": "1.7.3",
  "summary": "ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove()"
}