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 2A0CC10E3 for ; Tue, 30 Jul 2024 07:49:44 +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=1722325784; cv=none; b=X+Kiq4hMx6fQzi1t/6LT9v2ZyMcnVh9VgqCuHfAx/CjrzmOpp0y+dO/whucbkEW0jJcMkkLgqXGfKiJ5myJYCvkimgaaWaw0porz8BI/KCYCatLqk4/k+tdsnIaOsI8HC0/jQc3s6wWkbasrvbN3WMvflfLtotxHFb/bLB8kXTI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325784; c=relaxed/simple; bh=8Lr8o/YlXqyQ9fjH/ttuAIdwKDQaMqh1iU1sY73DGr4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ilFHo6xCBy3IhegBPT+o+qtgQ3sHkp7KuxmZezTHF2lA7FnEJ02sh6V5ky93WtsJIW78GkN3uSe/ACczTR5JyCtRXzdKCYj+FMqyrXQ2AzwbneMu34s5CI+PilcGXWzJ7EyUdE4b9bXrmMSBoOAM31PJg29L651rmyuk3ztJ9p8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2sJ69E+z; 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="2sJ69E+z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CAECC4AF0B; Tue, 30 Jul 2024 07:49:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325784; bh=8Lr8o/YlXqyQ9fjH/ttuAIdwKDQaMqh1iU1sY73DGr4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2sJ69E+zWVERY5v2TfbL+BkOa1SJDKepyjV8sWGVuxBUJKQoLzNr+aWTLpv/d+zah xVbvAYSURqSEqZjE2guOvdjxgTSuRokcehMjpPcT2MdCXUcnRizGVJNHM798NJw0r6 TUM73tHmL/DH4OfE283E7WqiIW2ABlmCHxmgeTqQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42132: bluetooth/hci: disallow setting handle bigger than HCI_CONN_HANDLE_MAX Date: Tue, 30 Jul 2024 09:47:50 +0200 Message-ID: <2024073028-CVE-2024-42132-49bf@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=2239; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8Lr8o/YlXqyQ9fjH/ttuAIdwKDQaMqh1iU1sY73DGr4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZk0Qn/xVuyKiVNJ+V1rf5f/xMnyCBz5z5Di63Zq/M 312xbIdHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARTR6GBa1L7EwVRbJ/bF5o FJn8z9W8+WPRBob5rguNS1Zreb6YofatKG6G1oHQV63FAA== 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: disallow setting handle bigger than HCI_CONN_HANDLE_MAX Syzbot hit warning in hci_conn_del() caused by freeing handle that was not allocated using ida allocator. This is caused by handle bigger than HCI_CONN_HANDLE_MAX passed by hci_le_big_sync_established_evt(), which makes code think it's unset connection. Add same check for handle upper bound as in hci_conn_set_handle() to prevent warning. The Linux kernel CVE team has assigned CVE-2024-42132 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.2 with commit 84cb0143fb8a and fixed in 6.6.39 with commit 4970e48f83db Issue introduced in 6.7 with commit 181a42edddf5 and fixed in 6.9.9 with commit d311036696fe Issue introduced in 6.7 with commit 181a42edddf5 and fixed in 6.10 with commit 1cc18c2ab2e8 Issue introduced in 6.5.12 with commit e9f708beada5 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-42132 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_conn.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/4970e48f83dbd21d2a6a7cdaaafc2a71f7f45dc4 https://git.kernel.org/stable/c/d311036696fed778301d08a71a4bef737b86d8c5 https://git.kernel.org/stable/c/1cc18c2ab2e8c54c355ea7c0423a636e415a0c23