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 402C8189BA5 for ; Fri, 27 Sep 2024 12:40:03 +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=1727440803; cv=none; b=P4H/fCsw5A++dXpkEpNzVpwalJtWVGCqcrXXyDYVvZrgPDeRFu3IHtSKqQCQQCxXbyztaEYO8A9joifoIuy0NnZ6oNaZmIqs+4m632EjjxOLuRBorHEzqjGnunsp7sGMu311nyoiG58P+DOoIn48BScXsNoJJY7Ol900BGdBQe0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727440803; c=relaxed/simple; bh=RPOj94vg0EAg7LEqRz2Cwy+EKW9EgAc41CxfUc5uJrU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZpnkUza8wXeg629B1PdrHptFMKs65iXmfwwt1I4YHyaHxLQbdq/5KzPbqVdCUXZhRKcacLe7OZJ1Aab5NiewUmL9Zi6meCu9AXGqSnwFELUmHnHrUomat/70p1bfuiEUztGzK0dTS1o6FUyQ5UViMoD+BR+45UevEKtmsViri8I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ksc22kaS; 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="ksc22kaS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0808C4CEC4; Fri, 27 Sep 2024 12:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727440803; bh=RPOj94vg0EAg7LEqRz2Cwy+EKW9EgAc41CxfUc5uJrU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ksc22kaStF19SzUEp/psie/9PSqyVmkzj4dZPF/d6F9svq7fQyfVPyRtlsVAuSa6h GFmWyz9KWJeKoISTCh1ekIHhDCTGJsgqtDWuTE1x4RacmgiYu1zHr6jt5oDIWpKntE BRjm3W+kytNvKJxBQPeVZozGzvSr1Qz4ZLsi70B8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46822: arm64: acpi: Harden get_cpu_for_acpi_id() against missing CPU entry Date: Fri, 27 Sep 2024 14:39:50 +0200 Message-ID: <2024092749-CVE-2024-46822-b901@gregkh> X-Mailer: git-send-email 2.46.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=2695; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RPOj94vg0EAg7LEqRz2Cwy+EKW9EgAc41CxfUc5uJrU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnflk9japBPmvihS8hx4tLKc4K5hnyCn268Kf6eXCh5b soC2X9/O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiBf0M82Nvxl8UL5rKdKX+ cbv+pMcrLBq2PmZYcDG6Z5u24dVjYoY9vce370lb8FFiPQA= 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: arm64: acpi: Harden get_cpu_for_acpi_id() against missing CPU entry In a review discussion of the changes to support vCPU hotplug where a check was added on the GICC being enabled if was online, it was noted that there is need to map back to the cpu and use that to index into a cpumask. As such, a valid ID is needed. If an MPIDR check fails in acpi_map_gic_cpu_interface() it is possible for the entry in cpu_madt_gicc[cpu] == NULL. This function would then cause a NULL pointer dereference. Whilst a path to trigger this has not been established, harden this caller against the possibility. The Linux kernel CVE team has assigned CVE-2024-46822 to this issue. Affected and fixed versions =========================== Fixed in 5.4.284 with commit f57769ff6fa7 Fixed in 5.10.226 with commit 4c3b21204abb Fixed in 5.15.167 with commit 945be49f4e83 Fixed in 6.1.110 with commit 40cae0df42e5 Fixed in 6.6.51 with commit 62ca6d3a905b Fixed in 6.10.10 with commit bc7fbb37e3d2 Fixed in 6.11 with commit 2488444274c7 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-46822 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: arch/arm64/include/asm/acpi.h 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/f57769ff6fa7f97f1296965f20e8a2bb3ee9fd0f https://git.kernel.org/stable/c/4c3b21204abb4fa3ab310fbbb5cf7f0e85f3a1bc https://git.kernel.org/stable/c/945be49f4e832a9184c313fdf8917475438a795b https://git.kernel.org/stable/c/40cae0df42e5e7f7a1c0f32deed9c4027c1ba94e https://git.kernel.org/stable/c/62ca6d3a905b4c40cd942f3cc645a6718f8bc7e7 https://git.kernel.org/stable/c/bc7fbb37e3d2df59336eadbd6a56be632e3c7df7 https://git.kernel.org/stable/c/2488444274c70038eb6b686cba5f1ce48ebb9cdd