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 8A20B32E141 for ; Fri, 9 Oct 2026 07:34:34 +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=1791531275; cv=none; b=YOSdmJWiJUmIvb4UW63S9SswPZITk6ql3KaLYYQeMWHHUrPpAK5fVVbeix8foQrsogPEg2YS8LHppwzD7tygu/vwKXTcSNjS3a2L6eBotRTobXSnf8sCIULzU0JHTefG/BKTGD7UmDp6TZDDM3evr5O3k9SsHss7vDyGS/Ddjqg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791531275; c=relaxed/simple; bh=5brM9MBrZSRtRwAuCmoCKRhkc6jQ4HjUWUUyVv+KClQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YX07ngLvXMWCLbO3DpvoKAGVWoYl8uCKO/SwMfcWslwt/2ez5HV8tg6IJbSWx0tLjPQC+96a/eLHGM3q7TvsdIPtrNqWHJYH/pHTz1vYc0slJ+VgoL3iCqJ8/LXt36J9CXdwqOATbnu8RYBKebvUDx5pj4czVjVaoXCVQHn1UKs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=W+a6mtGY; 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="W+a6mtGY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D186B1F000FF; Fri, 9 Oct 2026 07:34:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791531274; bh=SWB7hp+mLT9P0YX3vthh7FOoSk9gTU6h28MqrviJUAc=; h=From:To:Cc:Subject:Date:Reply-To; b=W+a6mtGYFSLZmcM2urUk4H5frOax/244heUT+X2RY59rTaPCBP01UQFbNCSZ8OkcL jT3u1tGqYQMm3NWK3F3G73qamj8PepoIQa/mCoNnAmNBNCRTWe1ZjbJfNm0lHN2B5S XVdNK64BuEii48Yo4Ejqn+M0MUmqXv8ek4cj4LmE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98376: bpf: Use array_map_meta_equal for percpu array inner map replacement Date: Fri, 9 Oct 2026 09:34:17 +0200 Message-ID: <2026100917-CVE-2026-98376-a4f3@gregkh> X-Mailer: git-send-email 2.56.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=2249; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GmzjcF+WaxYDBh3snpvrXckLiKYI2ZpWV/+ayOqMDMY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFknZvxstlC3LE27xPCp5Pxpz4DnVy5kLJF2k5Dys133j OHwChnnjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhILSPDgm6nSNe5ZfbvEt9u V3v19uBah12BsxjmJ1wKfxwfWPZMbNZX9cdzGXb8PfnnDgA= 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: Use array_map_meta_equal for percpu array inner map replacement percpu_array_map_ops.map_meta_equal points to the generic bpf_map_meta_equal(), which does not compare max_entries. When a percpu array serves as an inner map, replacing it with one that has fewer max_entries bypasses the check. Since percpu_array_map_gen_lookup() inlines the original template's index_mask as a JIT immediate, a lookup on the replacement map can access pptrs[] out of bounds. Point percpu_array_map_ops.map_meta_equal to array_map_meta_equal(), which already enforces the max_entries equality check. Add a selftest to verify that replacing a percpu array inner map with a differently-sized one is rejected. The Linux kernel CVE team has assigned CVE-2026-98376 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit db69718b8efac802c7cc20d5a6c7dfc913f99c43 and fixed in 7.1 with commit 593980175389a05793f6060aa20e626330960395 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-98376 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 tools/testing/selftests/bpf/prog_tests/percpu_array_inner_map.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/593980175389a05793f6060aa20e626330960395