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 8DBB060263 for ; Fri, 17 May 2024 14:48:14 +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=1715957294; cv=none; b=YQmPOAzupS4bnlxlkPyonN1AqLvzxzAKvEBQsjgUo2dNcIOPukhyIFW1o5CW1vAEDP0w6IvqmNWA60Mnp/MCuiTWU4hYl17brU2lF8dSR1GVJjZ9FYk1vaao9M0UzeZom4BrT8Tsf4MZCJvbZ0HezmPM6QThwdX498MmKlTH24w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715957294; c=relaxed/simple; bh=s93Z4Y8kRvjdnI6tZmq6/vAyVvRm2RH/fo1fRnacToI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QunHbL00QC3nflDSZVcAw3unU94pJjSW+ghp9XAK4QHR4UZf8GNfVOWkGDghdDGT41CMeAXE3SYg5EEG3OwOIFouja/BEVjZRpum6qzIDDZw/FkjrJTdL+OFnwFNVbjLz5X4ZMf8sRtAeEB/F5SO4NHdGa/K2w5AwpvOZpmOk+g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=njZ47w+G; 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="njZ47w+G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18B11C2BD11; Fri, 17 May 2024 14:48:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715957294; bh=s93Z4Y8kRvjdnI6tZmq6/vAyVvRm2RH/fo1fRnacToI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=njZ47w+GkS8zduQVlUzmxjuuh7svNU6dTWA6wiOWiZh4YiHkkyuBI9roFAbpkXiNN 0/1Zs2p4sq+ieHzAWIEnpuAa57InmYr67YA0fJwWDv4q3vzE+xJIPSW1byceeXVoCo LTCYZhYDMavezi/PkJidVKq4lMXejIVJHhfARiZU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35851: Bluetooth: qca: fix NULL-deref on non-serdev suspend Date: Fri, 17 May 2024 16:47:44 +0200 Message-ID: <2024051739-CVE-2024-35851-31be@gregkh> X-Mailer: git-send-email 2.45.1 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=2711; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=s93Z4Y8kRvjdnI6tZmq6/vAyVvRm2RH/fo1fRnacToI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnueTxifz3WJsRq7Vjac8M4qOTHg2CO+KCNTTN+83WwF 74TeDivI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbSspdhwRrxe96/TZt+XVQr ubVpjYjrke0X/zHMM+x4fLIjzpR5yXKu6QE75m3ZN3f3dQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: Bluetooth: qca: fix NULL-deref on non-serdev suspend Qualcomm ROME controllers can be registered from the Bluetooth line discipline and in this case the HCI UART serdev pointer is NULL. Add the missing sanity check to prevent a NULL-pointer dereference when wakeup() is called for a non-serdev controller during suspend. Just return true for now to restore the original behaviour and address the crash with pre-6.2 kernels, which do not have commit e9b3e5b8c657 ("Bluetooth: hci_qca: only assign wakeup with serial port support") that causes the crash to happen already at setup() time. The Linux kernel CVE team has assigned CVE-2024-35851 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit c1a74160eaf1 and fixed in 5.15.158 with commit 52f9041deaca Issue introduced in 5.13 with commit c1a74160eaf1 and fixed in 6.1.90 with commit e60502b907be Issue introduced in 5.13 with commit c1a74160eaf1 and fixed in 6.6.30 with commit 6b47cdeb786c Issue introduced in 5.13 with commit c1a74160eaf1 and fixed in 6.8.9 with commit b64092d2f108 Issue introduced in 5.13 with commit c1a74160eaf1 and fixed in 6.9 with commit 73e87c0a49fd 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-2024-35851 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: drivers/bluetooth/hci_qca.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/52f9041deaca3fc5c40ef3b9cb943993ec7d2489 https://git.kernel.org/stable/c/e60502b907be350c518819297b565007a94c706d https://git.kernel.org/stable/c/6b47cdeb786c38e4174319218db3fa6d7b4bba88 https://git.kernel.org/stable/c/b64092d2f108f0cd1d7fd7e176f5fb2a67a2f189 https://git.kernel.org/stable/c/73e87c0a49fda31d7b589edccf4c72e924411371