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 5AED8182D21 for ; Thu, 30 May 2024 15:36:31 +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=1717083392; cv=none; b=fjMD/EEeJckopLV1U9+8SarO6iVpOde/hm83UTkCNRhK2hJVQFO0J6zSYdpWYNijPz94oMtVrPKo5zHhzZfRhv7KNvumw5wPd8oEQkn0/5l/2RjqRNWQYSc8WFx+HCcCz40Lx4Dvr4U+Zmq16yzNLPU3geL3kZ/BCrk630XBTzc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717083392; c=relaxed/simple; bh=ZemtMTTWH6RPjISLH3YRvs6/2EBwURtcNu5JXLF/8x4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ejXla9FimEEPtPN76GT/rVYvYx2kpruxviYB9L53wM/GcRhu/PGq0rngnWBfuu7GBT/RowrRX4iEEoyg/4s9MgopcrUNKgG/lJ+qW4OZR+1rkfe2kUGFpuGkj93LROo6NDmmf7dgt5lDgNhy8nTryjgRad6Eu17WiEQ4FJpF/GI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EWb/KuT4; 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="EWb/KuT4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 918FDC32782; Thu, 30 May 2024 15:36:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717083390; bh=ZemtMTTWH6RPjISLH3YRvs6/2EBwURtcNu5JXLF/8x4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EWb/KuT48Vnc+9snRsiULTxM8RVWCTvbOuUihK/SA7vBdpE7RLc0PUTc+TpFsxEh2 HIQo4xVOljcA+jO250W209TInxRyeEOfGyguDytsFthLGtEXRiLnMcoccNR233CfQP En0gv46dPDD0Gnkccz/dCOXGnqLXD3lPOgGm+9Ck= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36942: Bluetooth: qca: fix firmware check error path Date: Thu, 30 May 2024 17:35:39 +0200 Message-ID: <2024053038-CVE-2024-36942-9730@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=2129; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZemtMTTWH6RPjISLH3YRvs6/2EBwURtcNu5JXLF/8x4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRc07JHPTNPmfPMfnrGQ69EwHyLp+Ml9zp4n54RafOz P98A3NXRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk4TTDgmUFC7vdsqUvdl13 vfDQh/uIeX3rdaCogHfdwYzTKTdKxENfXrv3+NJe1VsA 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 firmware check error path A recent commit fixed the code that parses the firmware files before downloading them to the controller but introduced a memory leak in case the sanity checks ever fail. Make sure to free the firmware buffer before returning on errors. The Linux kernel CVE team has assigned CVE-2024-36942 to this issue. Affected and fixed versions =========================== Fixed in 5.15.159 with commit 580bcd6bf24f Fixed in 6.1.91 with commit 064688d70c33 Fixed in 6.6.31 with commit 7bcba557d5c3 Fixed in 6.8.10 with commit d1f768214320 Fixed in 6.9 with commit 40d442f969fb 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-36942 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/btqca.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/580bcd6bf24f9975f97d81d5ef1b64cca9240df9 https://git.kernel.org/stable/c/064688d70c33bb5b49dde6e972b9379a8b045d8a https://git.kernel.org/stable/c/7bcba557d5c37cd09ecd5abbe7d50deb86c36d3f https://git.kernel.org/stable/c/d1f768214320852766a60a815a0be8f14fba0cc3 https://git.kernel.org/stable/c/40d442f969fb1e871da6fca73d3f8aef1f888558