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 77D5C1AB528 for ; Wed, 26 Feb 2025 01:58:41 +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=1740535121; cv=none; b=rOS8VSAJ8rj0yrnfnU1lZM+nYALbAaXDvZQLySfC4Kin5B1mWnw2oandjqTkwpl3QzlYi+OW5Uagg7C7wI8hEDb0KKo0JpdHEUpSWcE6o5KT1XzgVC3WV51jYjtIyv3hKdNuLGjEJ8y7VKUujmRQdxZYbfS04B//rmxxni5DE3E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535121; c=relaxed/simple; bh=W4hOYrtD7EhemZJLKxJffbo4WhYafYQrkTw7i8q09w0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jjrvVQdSdi2Kwfn4j+qISb2Fy8rIctkNNEz8ZV+8oZbA1XedCQIXrRqEPMFL8gU0gnPYWvU0Oz7YO2EkoRsx9lak36cXP72kA9KHZllSOE37B0ggJnMgTveFFVywkeOG/f+qQxW0WFfmBVxGdrTN77nEQwpLCIJzPkJm8CFubZc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ff0Pc+Lf; 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="ff0Pc+Lf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CFB6C4CEE6; Wed, 26 Feb 2025 01:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535121; bh=W4hOYrtD7EhemZJLKxJffbo4WhYafYQrkTw7i8q09w0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ff0Pc+LfdRleNWXvzjI1/3l7trPNWPYzgugYux87Z4/P5c1RAhz7inoNhaEJ2F3D2 3Zv1TVqHsr6H8/jOlrtjPOkHEv8PvwYcBwuSiGuwtdrHw7+U5eWYvJAze1XouBeK1B SEiwMfabwpxHjgrpZs3zsEE5xe8ogsV0pOAn+HjA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49138: Bluetooth: hci_event: Ignore multiple conn complete events Date: Wed, 26 Feb 2025 02:55:43 +0100 Message-ID: <2025022606-CVE-2022-49138-a241@gregkh> X-Mailer: git-send-email 2.48.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=2209; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=W4hOYrtD7EhemZJLKxJffbo4WhYafYQrkTw7i8q09w0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SuzvLpNfpLb47/7ME0+49Fm/6C7S/R5xu1B7iWHcG 6bLX6J2dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE/iYyLOiT9nrGHWEbc1B6 huHU1W+vK89aPpNhwXHJwuPLtk2N2uYePSenY27nvJ/MmwE= 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_event: Ignore multiple conn complete events When one of the three connection complete events is received multiple times for the same handle, the device is registered multiple times which leads to memory corruptions. Therefore, consequent events for a single connection are ignored. The conn->state can hold different values, therefore HCI_CONN_HANDLE_UNSET is introduced to identify new connections. To make sure the events do not contain this or another invalid handle HCI_CONN_HANDLE_MAX and checks are introduced. Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=215497 The Linux kernel CVE team has assigned CVE-2022-49138 to this issue. Affected and fixed versions =========================== Fixed in 5.17.3 with commit aa1ca580e3ffe62a2c5ea1c095b609b2943c5269 Fixed in 5.18 with commit d5ebaa7c5f6f688959e8d40840b2249ede63b8ed 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-2022-49138 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: include/net/bluetooth/hci_core.h net/bluetooth/hci_conn.c net/bluetooth/hci_event.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/aa1ca580e3ffe62a2c5ea1c095b609b2943c5269 https://git.kernel.org/stable/c/d5ebaa7c5f6f688959e8d40840b2249ede63b8ed