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 E49DD328616 for ; Wed, 24 Jun 2026 16:38:57 +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=1782319139; cv=none; b=kR0WnrSWKZ1MRsh+/On9MrXfoWdgcAwk7Q8oHQ+ZtnPytT8GVtwM7rn9lZCDcWF8dQVDZrQwrVCwgPLo/h3VjE+wFqTIlY4XVZ/R/ql6P/qS986U3Li/n7BYFU2RLDjbqtxBdzHMknsHEl7T6YVn1gQGCnny1IX+p2HUNAD1Dxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319139; c=relaxed/simple; bh=lD3uRq5E/9esBe1zQCZbeVmMR806eCs53NJtn3WEAAs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FSPJhuihZ55WpgukyIBkmYITBUnGTaA6Lyf0lfVyhPN+ijfzkFE1p3vaRqtXgm23ylni+Y7QkB+7fIecoCznUah4NGFOW/Q2EdUbdM/E818UT4ORopdOl8/ZXHG/0x4hwfoLMGfIPkwYG0RWqZyjSdQyVfkCNhP4PtzyCS9erzk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hMUco+Bv; 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="hMUco+Bv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EB331F00A3D; Wed, 24 Jun 2026 16:38:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782319137; bh=QXDaLYqt6iw7cVEnQ7xx4+wJbQGj/eUGOd/Q8gPnOrI=; h=From:To:Cc:Subject:Date:Reply-To; b=hMUco+Bv5704RmVC0z1GYkwhefZcP3sQTdCmZxcWFkC3GeR+YMrCerl4w5igIYghS 3In9HxYQt8tNbRGY6g8fSfv8eBX5VkxsJJx5qPTFc2W51rm3GDTipr5bOnJ3p5CEOl AegBI0/hRNzreBSqkD3hulba1CJWF9FZ9j15cwuY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53081: bpf: Enforce regsafe base id consistency for BPF_ADD_CONST scalars Date: Wed, 24 Jun 2026 17:31:45 +0100 Message-ID: <2026062407-CVE-2026-53081-4676@gregkh> X-Mailer: git-send-email 2.54.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=3253; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4eWwZwj4XW3BkauaETgNHEQ6Ed4bdk61ZahrvwzJ3+0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2bPyv2o5aaTSf/t95mYNnUbnEGv2dE9nmXC0QK061j d6mVTG3I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSo88w36flSM9rMeOj22Pe G13Zv+najvYrZxgWXLJyC8i6q/iP75fm4k7+Fxn/91aqAwA= 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: Enforce regsafe base id consistency for BPF_ADD_CONST scalars When regsafe() compares two scalar registers that both carry BPF_ADD_CONST, check_scalar_ids() maps their full compound id (aka base | BPF_ADD_CONST flag) as one idmap entry. However, it never verifies that the underlying base ids, that is, with the flag stripped are consistent with existing idmap mappings. This allows construction of two verifier states where the old state has R3 = R2 + 10 (both sharing base id A) while the current state has R3 = R4 + 10 (base id C, unrelated to R2). The idmap creates two independent entries: A->B (for R2) and A|flag->C|flag (for R3), without catching that A->C conflicts with A->B. State pruning then incorrectly succeeds. Fix this by additionally verifying base ID mapping consistency whenever BPF_ADD_CONST is set: after mapping the compound ids, also invoke check_ids() on the base IDs (flag bits stripped). This ensures that if A was already mapped to B from comparing the source register, any ADD_CONST derivative must also derive from B, not an unrelated C. The Linux kernel CVE team has assigned CVE-2026-53081 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 98d7ca374ba4b39e7535613d40e159f09ca14da2 and fixed in 6.12.91 with commit 13c02881e49aac4c82b261faa26db9edf2567231 Issue introduced in 6.11 with commit 98d7ca374ba4b39e7535613d40e159f09ca14da2 and fixed in 6.18.33 with commit 691adf738817275368ed56311b7d798d617823a3 Issue introduced in 6.11 with commit 98d7ca374ba4b39e7535613d40e159f09ca14da2 and fixed in 7.0.10 with commit 7d73c72cccac651acc891377a5e623e4021c6380 Issue introduced in 6.11 with commit 98d7ca374ba4b39e7535613d40e159f09ca14da2 and fixed in 7.1 with commit 2f2ec8e7730e21fc9bd49e0de9cdd58213ea24d0 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-53081 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/verifier.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/13c02881e49aac4c82b261faa26db9edf2567231 https://git.kernel.org/stable/c/691adf738817275368ed56311b7d798d617823a3 https://git.kernel.org/stable/c/7d73c72cccac651acc891377a5e623e4021c6380 https://git.kernel.org/stable/c/2f2ec8e7730e21fc9bd49e0de9cdd58213ea24d0