Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B6CD2C2369 for ; Mon, 15 Sep 2025 14:47:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757947627; cv=none; b=ScGmf/ZezigubgEHbpICynUthz5CQ06tU9T8AIESRsCsNtvI9Cs8km5OIIjsQey/47Q0HbJExUWb8SeaaF9/dQoSBKzQiVrtjKog8QKa9hZjvf5iWiDUv3WPkYCjQaUrqgaFlUppJk7HyPHzlzvVWaySxdscGKs9v+NxdOLvW5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757947627; c=relaxed/simple; bh=itMjwky7xrmw6DNfc9On1Ib05/SNDpdGcaWmoc1ZllQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LacQDwDU4CPoh8aB60iPwbdsp3kPFnSjH7JmOd29hCxNh/5PS7DGjYSxEPySb768dc6k1bV+25VCJ5up2idPAlAIZnMJCTC6ByPi60QkpybLS1anM9eFYlsPyuiEHKdRH6fwXwZRkBWBaYPM05AtfjnVzpNFLw/Wp++R8Fulxw0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fSbt1YgN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fSbt1YgN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADB2FC4CEF5; Mon, 15 Sep 2025 14:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757947626; bh=itMjwky7xrmw6DNfc9On1Ib05/SNDpdGcaWmoc1ZllQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fSbt1YgNjCstElSZRyGJbwbAXYSS2uc2ey7Bd0WnT0ZNGHDmsbzA2Vf3GL/6mT2h8 yd0YWdBDIx7Yg6Jh59pVHS+et6brEdSWItgX5yoOiMYsHwLbY82885HwBWbfHmhh2w OhY4ozvNqBDRjugFBeUKVZ56K7AhGUeNzchQKYoU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50305: ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove() Date: Mon, 15 Sep 2025 16:46:07 +0200 Message-ID: <2025091559-CVE-2022-50305-8aba@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2436; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ABZVir7y4tB2P/lXAj2xO0fHRSgi33Tm8T2vhtW4UPw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkn1JZLRceyfH65qmvqzUj/mRXLS3bGWr+cO0mD44v53 CTHD0fDOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAicbcYFuze/3zDw+le7OlX d5xYHt128O/HjicMCy4EbCxI91VKmR8dJbxG5z3HJ4sNUgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2022-50305 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0.11 with commit b60ee210a76cabdc2dd5396de299a1860b4945cd and fixed in 6.0.16 with commit b85102a3aa3810a09eb55692e8cd6ffbb304e57d Issue introduced in 6.1 with commit 89cdb224f2abe37ec4ac21ba0d9ddeb5a6a9cf68 and fixed in 6.1.2 with commit 390a1a98288a53b2e7555097d83c6e55d579b166 Issue introduced in 6.1 with commit 89cdb224f2abe37ec4ac21ba0d9ddeb5a6a9cf68 and fixed in 6.2 with commit 1b41beaa7a58467505ec3023af8aad74f878b888 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-50305 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: sound/soc/intel/boards/sof_es8336.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/b85102a3aa3810a09eb55692e8cd6ffbb304e57d https://git.kernel.org/stable/c/390a1a98288a53b2e7555097d83c6e55d579b166 https://git.kernel.org/stable/c/1b41beaa7a58467505ec3023af8aad74f878b888