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 17DDA1F6683 for ; Fri, 27 Dec 2024 15:07:43 +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=1735312063; cv=none; b=YvVh4yRZumSoVkEJx38jlXZioJnzxa4MaLFtLgq6gO8X3ircNqQINoi2IzKIcTM8FZblyeFsmTxwSXxwR9UJnW5LLYflJ2SGXorSDHDAl4wFMfeIhOw2B/l9TsP2A35ekBTRM3zl1WVqtYwIdCM1a0INLsEaprFQaqAEWh+9lqE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735312063; c=relaxed/simple; bh=+gq5X5XibNFQoNih/jUxbjJq2QD9PWT9k8nyKavd1ik=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WYmvZQLxsCCWkzYjEzY5dwU20Lshix03bZrdGm+aoxufh18xFBZqaVvIvUN7l9+3rk1Pp/SsDkmnWSKXD3PaVrjQQYNm1pLWXaMnFk27Y+HqreVRda/As2Tegz0o8MixRdVOfVTuP2udNsy3722vSo8yMmDaebTA0Cfo/pEtPB8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hVn2Mzhd; 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="hVn2Mzhd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70A09C4CED0; Fri, 27 Dec 2024 15:07:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735312062; bh=+gq5X5XibNFQoNih/jUxbjJq2QD9PWT9k8nyKavd1ik=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hVn2Mzhd9dIIGomghdVjyR80gydJ6TEU4/FDqGKqAOXT1YfMeX7iiSZk0K1vbINqb gXhwwOPH8l6OVQzXDBcTHyP1y3DroppHa+vyRWwK0mPKj1ulV9SE3TAV79GEg5OcpA MN5RWqhHPxQd3uboTA9+j0pQEXg2Y2kZhD3An3Kc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56654: Bluetooth: hci_event: Fix using rcu_read_(un)lock while iterating Date: Fri, 27 Dec 2024 16:06:51 +0100 Message-ID: <2024122749-CVE-2024-56654-66a1@gregkh> X-Mailer: git-send-email 2.47.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=2691; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+gq5X5XibNFQoNih/jUxbjJq2QD9PWT9k8nyKavd1ik=; b=kA0DAAIRMUfUDdst+ykByyZiAGduwomhWqU2vO/0clAzzGhf8eFuVQkasbQiUQb59T37lm1Er IhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmduwokACgkQMUfUDdst+ylaCQCcC/di KFgYDR53+jHnW2+5bPTr7HIAn2cccyhQMYy9YSNtlNCC/76iQEcj 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: Fix using rcu_read_(un)lock while iterating The usage of rcu_read_(un)lock while inside list_for_each_entry_rcu is not safe since for the most part entries fetched this way shall be treated as rcu_dereference: Note that the value returned by rcu_dereference() is valid only within the enclosing RCU read-side critical section [1]_. For example, the following is **not** legal:: rcu_read_lock(); p = rcu_dereference(head.next); rcu_read_unlock(); x = p->address; /* BUG!!! */ rcu_read_lock(); y = p->data; /* BUG!!! */ rcu_read_unlock(); The Linux kernel CVE team has assigned CVE-2024-56654 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit a0bfde167b506423111ddb8cd71930497a40fc54 and fixed in 6.6.67 with commit 0108132d7d76d884e443d18b4f067cdf2811911b Issue introduced in 6.6 with commit a0bfde167b506423111ddb8cd71930497a40fc54 and fixed in 6.12.6 with commit f9ecc90b5d501b3a5a62d0685d5104f934bb0104 Issue introduced in 6.6 with commit a0bfde167b506423111ddb8cd71930497a40fc54 and fixed in 6.13-rc3 with commit 581dd2dc168fe0ed2a7a5534a724f0d3751c93ae Issue introduced in 6.4.16 with commit b475c1109251e30ec21fb574d72a1c71a4ab0039 Issue introduced in 6.5.3 with commit 2ccde10127447c1a5caad8469fede945bdb62fdf 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-56654 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_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/0108132d7d76d884e443d18b4f067cdf2811911b https://git.kernel.org/stable/c/f9ecc90b5d501b3a5a62d0685d5104f934bb0104 https://git.kernel.org/stable/c/581dd2dc168fe0ed2a7a5534a724f0d3751c93ae