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 50DC340C15 for ; Sat, 2 Mar 2024 21:55:40 +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=1709416540; cv=none; b=WI+OO+L9WB2c2DFQK8K/5JEWvvUxQS9oEydUAcl2N2+Ph7jUBLeQWfgyS1WJ4uWtk7W0Ubo1Tj7XaKGUx0C2sDDxecS3A5kebIUziRoF1uv66PLmIwRXjRhjft+Oy/Ig0m8SXF4oavOs5gz8AXE1bfvRDkbxsQitWMeOwy2GO7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709416540; c=relaxed/simple; bh=Xuo7frRc8w6smIKX4EOOrwcKE8RXES1sP0uph1lNjCc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=km1uCU1Rk6ezTqgWRr5tjCb5LBm8gpP4ckI4skPrLWl9N4mRTG9obpE0VarO+75zEEpxVEfOw0Wn/zBYQz132wqWT9+3V/13xXYyHH6aLLLVG9J759+sT3VKWsg3k9dnDPbKlCTj0K24uQijJF+k684ZtOc3yxtDCL9WBsUCjjQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cg9yPFHf; 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="cg9yPFHf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82481C433C7; Sat, 2 Mar 2024 21:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709416539; bh=Xuo7frRc8w6smIKX4EOOrwcKE8RXES1sP0uph1lNjCc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cg9yPFHff7S0QOBsDXytlH9WfnSApol/47LMBmF5SKux2b2ZKQu0H+0+CzvKq9m3E X5f6+5SK8Cle7BpFBEV4TC25my3aXHT8R1hFai+Uo/htUKXvPwwNm+3uVHcxWXeZcO jfq+8u26MIOoR59MmaKgcXk6FDfXAKjMjojv6Y3A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52518: Bluetooth: hci_codec: Fix leaking content of local_codecs Date: Sat, 2 Mar 2024 22:54:52 +0100 Message-ID: <2024030251-CVE-2023-52518-bcfa@gregkh> X-Mailer: git-send-email 2.44.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=3001; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Xuo7frRc8w6smIKX4EOOrwcKE8RXES1sP0uph1lNjCc=; b=owGbwMvMwCRo6H6F97bub03G02pJDKmPF2gf0zP4cZXt9uTl7j7Xlm7O2Nr+Q7Ga45Htps3Jy nYXi9fHd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE1H4wzHdLmjPLYYut5qmT 53K6dGsC7tx/IMYwV7xcIauBm+djslmxxsqWYwX71/ZaAwA= 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: hci_codec: Fix leaking content of local_codecs The following memory leak can be observed when the controller supports codecs which are stored in local_codecs list but the elements are never freed: unreferenced object 0xffff88800221d840 (size 32): comm "kworker/u3:0", pid 36, jiffies 4294898739 (age 127.060s) hex dump (first 32 bytes): f8 d3 02 03 80 88 ff ff 80 d8 21 02 80 88 ff ff ..........!..... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] __kmalloc+0x47/0x120 [] hci_codec_list_add.isra.0+0x2d/0x160 [] hci_read_codec_capabilities+0x183/0x270 [] hci_read_supported_codecs+0x1bb/0x2d0 [] hci_read_local_codecs_sync+0x3e/0x60 [] hci_dev_open_sync+0x943/0x11e0 [] hci_power_on+0x10d/0x3f0 [] process_one_work+0x404/0x800 [] worker_thread+0x374/0x670 [] kthread+0x188/0x1c0 [] ret_from_fork+0x2b/0x50 [] ret_from_fork_asm+0x1a/0x30 The Linux kernel CVE team has assigned CVE-2023-52518 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 8961987f3f5f and fixed in 6.1.57 with commit 626535077ba9 Issue introduced in 5.16 with commit 8961987f3f5f and fixed in 6.5.7 with commit eea5a8f0c3b7 Issue introduced in 5.16 with commit 8961987f3f5f and fixed in 6.6 with commit b938790e7054 Please see https://www.kernel.org or 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-52518 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 net/bluetooth/hci_event.c net/bluetooth/hci_sync.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/626535077ba9dc110787540d1fe24881094c15a1 https://git.kernel.org/stable/c/eea5a8f0c3b7c884d2351e75fbdd0a3d7def5ae1 https://git.kernel.org/stable/c/b938790e70540bf4f2e653dcd74b232494d06c8f