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 10644190497 for ; Tue, 30 Jul 2024 07:50:01 +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=1722325801; cv=none; b=nalCBpZG2dDgLBDgv5m2VQn1qk9EggPmSc18QoAU9zWltOo/5A2Z3GI71koi4JRGVrR8rrKxpiPTMEliiAiEtmIUSgclltvYd0qtjuXYMXDMPf4ZrdQeqVQLRs1/9d337QpTUd9i7tf6HeLzbv6LIGsy99pyEYDnyNtm8FMeKXM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325801; c=relaxed/simple; bh=b1hNBiC/4qhzUBuqBdCg1KHqdpSWdExDgiJJFyqzcsU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h63xlAyFeI+TJHWeIrzpti5mXenmn1OreJp5+6p76E9n2gIlRZHOdReKZUS7Yr/2z7pKeQtqS6HB5Fr2cBf3JR5Oc2vezOTedlcTnhbLkrz+xAEmyEq/DZDSdWBYJp5nUVhm3CpHjffvWRfn3bYhydUkFWR0YP/RBnzpBrtqPuE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tzbbfyun; 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="tzbbfyun" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72E68C32782; Tue, 30 Jul 2024 07:50:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325800; bh=b1hNBiC/4qhzUBuqBdCg1KHqdpSWdExDgiJJFyqzcsU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tzbbfyuniYX7I8N/a4BIT6cc1pqKQY717KCeU6e8bALJSOlxwoIR6WE0BRHTnW00N 01MDFAX+TIX0uORViJLFhrNPcS3YnW9F7aL440CP6i7urYtLmj+cFlDjkryGZxorsH RUbmk6Wqqv/BsRi2etPFYzdsrozfjYQxmHqs7BsI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42137: Bluetooth: qca: Fix BT enable failure again for QCA6390 after warm reboot Date: Tue, 30 Jul 2024 09:47:55 +0200 Message-ID: <2024073029-CVE-2024-42137-3637@gregkh> X-Mailer: git-send-email 2.45.2 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=3503; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=b1hNBiC/4qhzUBuqBdCg1KHqdpSWdExDgiJJFyqzcsU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZk3s2pSkUf6gzYk14LfKdxEO22pFxTkrK7a5/rZYK B15Y7lrRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk33OG+e49VedmnKm/Hxpi /CVKd4r3qkVOGgzzw1Pl33MvqzGPkEy/314ec/ny1ntWAA== 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 BT enable failure again for QCA6390 after warm reboot Commit 272970be3dab ("Bluetooth: hci_qca: Fix driver shutdown on closed serdev") will cause below regression issue: BT can't be enabled after below steps: cold boot -> enable BT -> disable BT -> warm reboot -> BT enable failure if property enable-gpios is not configured within DT|ACPI for QCA6390. The commit is to fix a use-after-free issue within qca_serdev_shutdown() by adding condition to avoid the serdev is flushed or wrote after closed but also introduces this regression issue regarding above steps since the VSC is not sent to reset controller during warm reboot. Fixed by sending the VSC to reset controller within qca_serdev_shutdown() once BT was ever enabled, and the use-after-free issue is also fixed by this change since the serdev is still opened before it is flushed or wrote. Verified by the reported machine Dell XPS 13 9310 laptop over below two kernel commits: commit e00fc2700a3f ("Bluetooth: btusb: Fix triggering coredump implementation for QCA") of bluetooth-next tree. commit b23d98d46d28 ("Bluetooth: btusb: Fix triggering coredump implementation for QCA") of linus mainline tree. The Linux kernel CVE team has assigned CVE-2024-42137 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.165 with commit e84ec6e25df9 and fixed in 5.10.222 with commit 215a26c2404f Issue introduced in 5.15.90 with commit 908d1742b6e6 and fixed in 5.15.163 with commit 4ca6013cd18e Issue introduced in 6.1.8 with commit ea3ebda47dd5 and fixed in 6.1.98 with commit e6e200b26427 Issue introduced in 6.2 with commit 272970be3dab and fixed in 6.6.39 with commit e2d8aa4c7635 Issue introduced in 6.2 with commit 272970be3dab and fixed in 6.9.9 with commit 977b9dc65e14 Issue introduced in 6.2 with commit 272970be3dab and fixed in 6.10 with commit 88e72239ead9 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-42137 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/215a26c2404fa34625c725d446967fa328a703eb https://git.kernel.org/stable/c/4ca6013cd18e58ac1044908c40d4006a92093a11 https://git.kernel.org/stable/c/e6e200b264271f62a3fadb51ada9423015ece37b https://git.kernel.org/stable/c/e2d8aa4c763593704ac21e7591aed4f13e32f3b5 https://git.kernel.org/stable/c/977b9dc65e14fb80de4763d949c7dec2ecb15b9b https://git.kernel.org/stable/c/88e72239ead9814b886db54fc4ee39ef3c2b8f26