Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E1B4B4908A9 for ; Fri, 25 Sep 2026 10:41:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332914; cv=none; b=toOSDirJ/T00YOhMtePTlRrgfgF9XKSqfNqp6Vvaar90lVUOLn375pE5GcYFR0y+meWZ2JN5HKwH4uHA3EsM2qaGP6TLVcadE0IeHS/vZVJ2GUa5rP5VMNCmfB1vMn3NrTc7Eb6BI8iPAcfjvl8fQWtf3Y34kIqU5u3aeOr/iMo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332914; c=relaxed/simple; bh=alwA2s5JIal7VOSUg7rPTNpZokwDIuKO8MB3HqZh+5U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ut0D61g6zuk+588hAfgbF6Nq6vpPgpOC3/cElERVHZjKO3cxyahEqZvUp5ESPBoLeBzrbP1Kn1oDESc69Hg+lUAVhbdlGAUDDSJwaUwZm3a6Y9koqk5j35yv4KnHDDfVXTKaZkaF1joabsO6zW38GVnjQ/drk24aNuvztaNnQDw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=19FmwI+4; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="19FmwI+4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 410351F000FF; Fri, 25 Sep 2026 10:41:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332912; bh=eMsQWU6s+/ALFRGv0WUxUYUXdsUNQGY3D61tb7sX13k=; h=From:To:Cc:Subject:Date:Reply-To; b=19FmwI+4buWkAiShv+bVbzUT+ufY7IHeBSiZej1cdGDq046JfGTM1I1roGaeLH7WD cvFbvwR7h8gfrNEJVMpGwOPOG80C8jTZm3fBq3txXOFd2OQl/AixYq59ECRQe7wm3F VT4AiHD0EOrZArB3kF5KrjNs2i59bPAfgUsoW1Qg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98149: bpf: Fix percpu map update indexing with sparse CPU IDs Date: Fri, 25 Sep 2026 12:39:56 +0200 Message-ID: <2026092518-CVE-2026-98149-5f60@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2871; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dSxJu1By7WAZeQGym3uPrg8Fkhboy8AwQh+ZJWXY+zA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnb/MM3v01kbZKaImfVqx/hE7jl0WzGScd+aq7cXPXux 0d5XautHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRF1IM83Plk+V3HqpepjVb un51dtWSe19uRzIsWLzNP3/6uk+vjt8sW5LOuTYz+GiYDwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: bpf: Fix percpu map update indexing with sparse CPU IDs Per-CPU array, hash, and cgroup storage map updates without BPF_F_CPU or BPF_F_ALL_CPUS use a value buffer whose per-CPU slots are packed in possible-CPU order. The buffer is sized as: round_up(value_size, 8) * num_possible_cpus() The update paths iterate over possible CPUs, but use the logical CPU ID to calculate the source offset: value + size * cpu This only works when possible CPU IDs are contiguous starting at zero. For example, with a possible CPU mask of 0,2-3, the buffer contains three slots corresponding to CPUs 0, 2, and 3. CPU2 is therefore expected to use slot 1 and CPU3 slot 2. Instead, the current code uses slots 2 and 3 respectively, causing incorrect per-CPU values and an out-of-bounds read from the update buffer for CPU3. The corresponding lookup paths already use a dense offset while iterating over possible CPUs. Do the same for the array, hash, and cgroup storage update paths, advancing the source offset once for each possible CPU. BPF_F_ALL_CPUS continues to use the same value for every CPU. The Linux kernel CVE team has assigned CVE-2026-98149 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit 8eb76cb03f0f6c2bd7b15cf45dcffcd6bd07a360 and fixed in 7.2.7 with commit c16c62c91e5d6737a9fbb0a541b8b34610470a2b Issue introduced in 7.0 with commit 8eb76cb03f0f6c2bd7b15cf45dcffcd6bd07a360 and fixed in 7.3-rc2 with commit 75b0a6db4300e4c2c9e97a0848deaa7acfb42fb7 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-2026-98149 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: kernel/bpf/arraymap.c kernel/bpf/hashtab.c kernel/bpf/local_storage.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/c16c62c91e5d6737a9fbb0a541b8b34610470a2b https://git.kernel.org/stable/c/75b0a6db4300e4c2c9e97a0848deaa7acfb42fb7