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 C4CFA2E7F21 for ; Wed, 1 Oct 2025 11:58:57 +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=1759319937; cv=none; b=i76sE+s7FF8NGjn1kt64+M4XH0Ss4wDeFIt+1Z/ouzI2fOGsYtldF44CdrdLfY9QSMNv/hAO58CQvluJezGbdHCWaKWc7ShZWCXHKsFViML7nnIxSBwfGp0HRVJcDXxuPZqV3516a6QolIlHrjuga72gVnr+dYRLU/P/N55BVw4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319937; c=relaxed/simple; bh=ohfO20SlBHdx6nQZ2WnUVMjF+t4iffEclji9FvXlGSU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p+bOXSI+eLD8I7KH+Bu9a7VH6Hw5KRwDtWAbZXUkADJp+4yozg9lg71V3gQzG9IPyqcJD2LIBZfaFcyDAj/s9dbdveyxavkkKGy/Z4bybD/aeYyDyDtSvyI6BkxER1T6/cr+MNtfcuqaGw+lL6m5qvNaRUVX8/LDBFer9iKVkMk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lU1Ja6Y2; 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="lU1Ja6Y2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37567C4CEF4; Wed, 1 Oct 2025 11:58:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319937; bh=ohfO20SlBHdx6nQZ2WnUVMjF+t4iffEclji9FvXlGSU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lU1Ja6Y2h9pLmPBXg76Kfl7p8jTYNxSxdXPqyDayHS2i54dBovd8KvSnWRdXokWPZ 3+lXeioepDQMhQlNwQs6b1APc32RlMRGePwydInNes4mj/uUU0GIKP5vauQbSeNRoo RZZd5DZEu1r48Bp9RK1Jli38PNqQAPFiZMiF2jSI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53520: Bluetooth: Fix hci_suspend_sync crash Date: Wed, 1 Oct 2025 13:46:12 +0200 Message-ID: <2025100133-CVE-2023-53520-a542@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=2965; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CClYqb/136PNMzY+4nWIGPN1/78s7ubmXyTbURy0d04=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3RWL99nZK9X4/Z9SS//Ojn/yi0MPTlpmmsTjdEtlmN O/Vv9PeHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRRlWGBZMOZ+ifVYw6bfF3 TqvMrVMH/Uq81jLMz53NG8XIqvsmhueT4qn7JypmLLy1GgA= 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: Fix hci_suspend_sync crash If hci_unregister_dev() frees the hci_dev object but hci_suspend_notifier may still be accessing it, it can cause the program to crash. Here's the call trace: <4>[102152.653246] Call Trace: <4>[102152.653254] hci_suspend_sync+0x109/0x301 [bluetooth] <4>[102152.653259] hci_suspend_dev+0x78/0xcd [bluetooth] <4>[102152.653263] hci_suspend_notifier+0x42/0x7a [bluetooth] <4>[102152.653268] notifier_call_chain+0x43/0x6b <4>[102152.653271] __blocking_notifier_call_chain+0x48/0x69 <4>[102152.653273] __pm_notifier_call_chain+0x22/0x39 <4>[102152.653276] pm_suspend+0x287/0x57c <4>[102152.653278] state_store+0xae/0xe5 <4>[102152.653281] kernfs_fop_write+0x109/0x173 <4>[102152.653284] __vfs_write+0x16f/0x1a2 <4>[102152.653287] ? selinux_file_permission+0xca/0x16f <4>[102152.653289] ? security_file_permission+0x36/0x109 <4>[102152.653291] vfs_write+0x114/0x21d <4>[102152.653293] __x64_sys_write+0x7b/0xdb <4>[102152.653296] do_syscall_64+0x59/0x194 <4>[102152.653299] entry_SYSCALL_64_after_hwframe+0x5c/0xc1 This patch holds the reference count of the hci_dev object while processing it in hci_suspend_notifier to avoid potential crash caused by the race condition. The Linux kernel CVE team has assigned CVE-2023-53520 to this issue. Affected and fixed versions =========================== Fixed in 6.1.55 with commit 06e2b5ad72b60f90bfe565c201346532e271f484 Fixed in 6.5.5 with commit f9c8ce5d665653e3cf71a76349d41d7a7f7947e6 Fixed in 6.6 with commit 573ebae162111063eedc6c838a659ba628f66a0f 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-53520 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/06e2b5ad72b60f90bfe565c201346532e271f484 https://git.kernel.org/stable/c/f9c8ce5d665653e3cf71a76349d41d7a7f7947e6 https://git.kernel.org/stable/c/573ebae162111063eedc6c838a659ba628f66a0f