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 1D7B637647B for ; Sun, 18 Oct 2026 15:38:15 +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=1792337896; cv=none; b=IjkQxeJWuRz52VYYKZiQ7c1kTkOSo1IZgTEAHFnRTTuJNSiqk9V/wY7ZAdpxiMgsMsiu8xjBeqnq6Hh1D1AIJkyE00d3HPLVJhnHFogby2BI8JDBYoGHRXD5uMUuZrCRcT1ROmG4Y9Rb8Nlq8+OJigm0QP17D2GlT6QN8/dys7s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337896; c=relaxed/simple; bh=LePt0NwHVzOsSo6E3ZtnvLDknaOJTFRXQQyqm3KCNic=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MSHECtn5e7qpN35ESl/0aeGyMyUhiC/srp7k0+ixPkBrLpSKddflFU+H1hytA5Ni1xp1oV5f5I/evZKP7ACiu7uQSb7l3DYDHxcavf8hE+L/UzYWpNdt7gXAnSAMcrt/oFC/vXNhGSVEagcw6K/OGwUD7JtBXTw/4i/yDpjVTBM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qFLRsC45; 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="qFLRsC45" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 586231F000C4; Sun, 18 Oct 2026 15:38:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337895; bh=UU1SSHsGaxR8XKhFCyx/NfqEyyfaJWKcPH1J/PSMsoQ=; h=From:To:Cc:Subject:Date:Reply-To; b=qFLRsC45xniM4Te6Hm6jZz2IS4JeqHZ6NH53FXiAcxeSYAFho6Dj8uIEKWprp2uMO oi4+660t+RQqqQL0PUzj3ElTbyO3T4pFpUQo1NRITzEi3AN2xy2Y94nptDrcdPhFXl 4mhTJiJBVVaOafk6r/KvKmJjneiZkbYCfGN/cRJc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98627: bpf: Preserve packet pointer class displacement in regsafe() Date: Sun, 18 Oct 2026 17:18:11 +0200 Message-ID: <2026101843-CVE-2026-98627-7042@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=2798; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BNCrSPKsWQnLmjHoYjV1ae9M4nP9PSU+1zzIlBvk2/c=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHs3/u9Z28puOmY8ib/1pnqCw4Fr18gtVt+X3fd56e kPTi4/G1zpiWRgEmRhkxRRZvmzjObq/4pCil6HtaZg5rEwgQxi4OAVgInslGRbMWeq3wGf/JgGJ S8kq17/zVPF6VDEwzC/a3rdIab+k/qILbsK9Cw5+NI2cUgsA 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: Preserve packet pointer class displacement in regsafe() regsafe() maps packet pointer IDs between states and checks that each current register range is a subset of the corresponding explored register range. It does not, however, preserve the displacement between registers that share a packet pointer ID. This is unsound because packet range is shared by ID. A bounds check on one class member updates every member, and a later access can consume the range through another member. Commit 022ac0750883 ("bpf: use reg->var_off instead of reg->off for pointers") folded the fixed pointer offset into r64 and removed the old off equality check, so two individually narrower registers can prune even when their displacement has changed. The explored path can then license an out-of-bounds packet access on the pruned path. Require matching range bases for packet pointers with an ID. Together with the existing ID mapping, this preserves the displacement between members of each packet-pointer class without adding per-ID state. Packet pointers without an ID remain unaffected. The Linux kernel CVE team has assigned CVE-2026-98627 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 022ac075088366b62e130da5e1b200bc93a47191 and fixed in 7.2.9 with commit 091b40845bd3cf96791171ca95113e9184ccb596 Issue introduced in 7.1 with commit 022ac075088366b62e130da5e1b200bc93a47191 and fixed in 7.3-rc5 with commit fd16449a9b3b31a8f18944c2f0e29e4e218ca2cf 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-98627 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/states.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/091b40845bd3cf96791171ca95113e9184ccb596 https://git.kernel.org/stable/c/fd16449a9b3b31a8f18944c2f0e29e4e218ca2cf