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 C2C501552ED for ; Mon, 29 Jul 2024 14:34:12 +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=1722263652; cv=none; b=oftARCbEBNegNXvnXdmLoirbsQDZJdV6J/EQfQoBHOQBS+K91ACYD8kyR1Pxnmzezj69j/wD76zT9SZLMd8WkLrkZ5C5uGAcSBW89xHbJuEpIIRm7DPxR0FgomGzwsUyYsfeeDTzTQCG+fNux91VgB5ocyPMqo0BiBL47JeDJF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722263652; c=relaxed/simple; bh=Q4YjsFqAKRngyOWMjBxOuiDa0CqHbNmEZ69xQFapLzU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pHVr+lt0MtsSf2a16ZNCM9OLTBvr8AG0dn6jhI/eZrv+vAneCfUSmRGlVzDKQ8Dk2xtFnSSnuA5KuPpojNZ1oAwMtf2sxsgdBTmxR8StCiYxopzVpxQpfvw9H4487HqWPu3MiVJ5toe39prcx16wbSMj9uw1dXK1TvjYOZyhNWw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wc+VE9SE; 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="wc+VE9SE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D74F6C32786; Mon, 29 Jul 2024 14:34:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722263652; bh=Q4YjsFqAKRngyOWMjBxOuiDa0CqHbNmEZ69xQFapLzU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wc+VE9SEI6ZrlApQ5OicnvWoIucI55AQ5jVnHeewS4ydMe3wtJwQ2I8JiXF/bd+5Q mOnGa2uNsk1ptlimm4dkCeO5OPUqc800iP1Bu6Cz/KEz92cSLs3jtJQ7KXxPLfvIpe eTJ8l35ZoDHDfbo1G49sf3TZPW+lm5Wfou2B+VV8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-41032: mm: vmalloc: check if a hash-index is in cpu_possible_mask Date: Mon, 29 Jul 2024 16:32:27 +0200 Message-ID: <2024072922-CVE-2024-41032-6284@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=2271; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Q4YjsFqAKRngyOWMjBxOuiDa0CqHbNmEZ69xQFapLzU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLl39TZbFVnHjyufmze67z02dbHA3hnLYyrTFmk3uyz N4FvzaXd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE2B0Y5krxc++wsDeX3cIv sT/vxiy3Ww5hpQxzOI4f3S9SNOOOVOkv7T3SBld1sv9tAAA= 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: mm: vmalloc: check if a hash-index is in cpu_possible_mask The problem is that there are systems where cpu_possible_mask has gaps between set CPUs, for example SPARC. In this scenario addr_to_vb_xa() hash function can return an index which accesses to not-possible and not setup CPU area using per_cpu() macro. This results in an oops on SPARC. A per-cpu vmap_block_queue is also used as hash table, incorrectly assuming the cpu_possible_mask has no gaps. Fix it by adjusting an index to a next possible CPU. The Linux kernel CVE team has assigned CVE-2024-41032 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 062eacf57ad9 and fixed in 6.6.41 with commit 28acd531c9a3 Issue introduced in 6.4 with commit 062eacf57ad9 and fixed in 6.9.10 with commit 47f9b6e49b42 Issue introduced in 6.4 with commit 062eacf57ad9 and fixed in 6.10 with commit a34acf30b19b 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-41032 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: mm/vmalloc.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/28acd531c9a365dac01b32e6bc54aed8c1429bcb https://git.kernel.org/stable/c/47f9b6e49b422392fb0e348a65eb925103ba1882 https://git.kernel.org/stable/c/a34acf30b19bc4ee3ba2f1082756ea2604c19138