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 140F12E7BDC for ; Tue, 30 Dec 2025 12:16:15 +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=1767096975; cv=none; b=DnV0DOaPT7gRA9GZHT4o2ATLtyLJZSRxZeq3u/+OqMrZlnU6cxtUbMmQvAEEKy4UJ+noq7rXMEEJ/EwE7+r43UDKK6iUZIaouy8grg+1Gq7gVw4zE9d1rejuJsLFI5NvXOC66M+DhN8T/Ljg4xp5WG8XpEC71kd/vOfHucactu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096975; c=relaxed/simple; bh=pX6rHxKSmmeplkEhzuIBMe5qqGILNG+c9Plov+7qZGM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MJ9GwL8pkqvBYpJOf4ktgM4xIwkalhbBzG+09ECzTe0R9/CtcLYoKIWopkRPd/ZSSQw+zM1kBsVBI/Qa5eCOh+DfUz2Bo0k4UdpSdX8qDGGYGSEd8dIHSdHReFqWFgZJFG2kwRLjbQvL2hcT5uzCV9gd5PWVbKeXD3wLrMzLfXg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O35qXnTS; 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="O35qXnTS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 938FCC4CEFB; Tue, 30 Dec 2025 12:16:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096975; bh=pX6rHxKSmmeplkEhzuIBMe5qqGILNG+c9Plov+7qZGM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=O35qXnTSHHkU5EjRxstuxZH735FFZWFT/8pOsxJdVIVSURze2ArDEQ797pklA+ClY MtvMRF7ZRAmyAHDCwgTk+UTgIwfBzZ99VIGkVKl3DX0ONisbYaNj+zzuZbFnz9aRTX GqW7X0zAd9yakODHZG745xwb1n47/TUupIsI6j0k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54210: Bluetooth: hci_sync: Avoid use-after-free in dbg for hci_remove_adv_monitor() Date: Tue, 30 Dec 2025 13:13:40 +0100 Message-ID: <2025123024-CVE-2023-54210-7a73@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2587; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eHd9mnv0aYP4s/HFZWxAJQsUlbIs/iyFSoZXj6Sul50=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB59o+AiwZHr3MbZICiWeZHzexNIeUOG8mj/ln4ge0 9Nt3950xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwETuVTPMM/BafTt7TzTPIY5P WV/Kjk0+PsvyPMP8OvltSt73p5xLeVp0p9J2r8SJpnnvAQ== 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: Bluetooth: hci_sync: Avoid use-after-free in dbg for hci_remove_adv_monitor() KASAN reports that there's a use-after-free in hci_remove_adv_monitor(). Trawling through the disassembly, you can see that the complaint is from the access in bt_dev_dbg() under the HCI_ADV_MONITOR_EXT_MSFT case. The problem case happens because msft_remove_monitor() can end up freeing the monitor structure. Specifically: hci_remove_adv_monitor() -> msft_remove_monitor() -> msft_remove_monitor_sync() -> msft_le_cancel_monitor_advertisement_cb() -> hci_free_adv_monitor() Let's fix the problem by just stashing the relevant data when it's still valid. The Linux kernel CVE team has assigned CVE-2023-54210 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c and fixed in 6.1.42 with commit 0d4d6b083da9b033ddccef72d77f373c819ae3ea Issue introduced in 6.0 with commit 7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c and fixed in 6.4.7 with commit bf00c2c8f6254f44ac041aa9a311ae9e0caf692b Issue introduced in 6.0 with commit 7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c and fixed in 6.5 with commit de6dfcefd107667ce2dbedf4d9337f5ed557a4a1 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-2023-54210 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: net/bluetooth/hci_core.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/0d4d6b083da9b033ddccef72d77f373c819ae3ea https://git.kernel.org/stable/c/bf00c2c8f6254f44ac041aa9a311ae9e0caf692b https://git.kernel.org/stable/c/de6dfcefd107667ce2dbedf4d9337f5ed557a4a1