lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025091559-CVE-2022-50305-8aba@gregkh>
Date: Mon, 15 Sep 2025 16:46:07 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50305: ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove()

From: Greg Kroah-Hartman <gregkh@...nel.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ