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 88F2B4968EE for ; Fri, 25 Sep 2026 10:35:58 +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=1790332559; cv=none; b=b3YpNlP9S5w71efZZPBsx0tEcrnKlEbL1mKoALO8dnMmE8v5K3FAEPQOyA30VCzpGnRLBn8Dnwj3aLSFn8a9Sj5iiHdkiFMI7UPXDDZf8MD0n2iE4SLalNfcFK2bcwBG/EyjqdEQHVCpf7Ronc0zl3t6QSfoYJUs5CFUxB/5bac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332559; c=relaxed/simple; bh=uMPgWDbsF+j+LKr8Bp9Z9gLLX6s9X/y0LrgQEHbvmYE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qfGxGgZ+wCj4eFaN2lveRfJAN1SjLwXqpaWqYHyu7Ptvui0n4dQs6C3lJ0Zkmxg5MBt87D/byb9XxyYHZqH1cDymjB612G+wRzFNacjfeUlfRGQXIFdkA0JUyK513hRqZKGGGtUsYEldnWWi8tWjddjMZxI8CenAQ2Av0JZgcXA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sfXHEfN/; 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="sfXHEfN/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4E0D1F000FF; Fri, 25 Sep 2026 10:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332558; bh=IFvRiCh+ga2M9ng7vQXIY2PAIJLKQIqYr27upakz1i8=; h=From:To:Cc:Subject:Date:Reply-To; b=sfXHEfN/Yo701a3s8iP2/sPEB1ZPd0lH0p0/dX1rZvCR8umBdToZEbVqFITxzWGCl bBYvqIQRRdtUOfSYD9ulvSgLrYOGpR++t6rjkuQw/oC63MOZDuNPjq/7g2XmFksxXg i/tTS/UN8xBgtDYXEmpGB5dBKSHYrPdQx/CVxGwg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98042: bpf: Don't resurrect a scalar id dropped by collect_linked_regs() Date: Fri, 25 Sep 2026 12:25:44 +0200 Message-ID: <2026092530-CVE-2026-98042-8089@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=2535; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YMKTcCbSy89RoXUoUHsF8562gXd0/BsZ7jwK+zIuJBc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvNOPTH6wXrxqhpyBs4/9RdFg9t6rsQXzZNXuRZ3n4 ffTmcLXEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5J8Gw4LrA9rBN3f8KlvLt rWRi35Hw6N+xJIYF8/g5yp6kbcv0k9jfdHTZ9Ttvq5dyAAA= 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: Don't resurrect a scalar id dropped by collect_linked_regs() check_cond_jmp_op() copies the compared registers into env->{false,true}_reg{1,2} before collect_linked_regs() runs and copies those snapshots back into both branch states afterwards. collect_linked_regs() records at most LINKED_REGS_MAX members of a linked registers group in the jump history and calls clear_scalar_id() for every member that does not fit. The compared register is not exempt from that. As a consequence, sync_linked_regs() might adjust ranges for more registers than bpf_bt_sync_linked_regs() can propagate precision to. Collect the linked registers before the snapshots are taken instead. This might lead to some unnecessary clear_scalar_id's, but from previous testing situations with many linked registers are extremely rare. The Linux kernel CVE team has assigned CVE-2026-98042 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit ec1d77cb0ee98249142dcd0376d76e7a48ba0b31 and fixed in 7.2.7 with commit e821ff19b8ef08255ff8d8234774ed814637e9bf Issue introduced in 7.1 with commit ec1d77cb0ee98249142dcd0376d76e7a48ba0b31 and fixed in 7.3-rc2 with commit 73a98f96811e2cb0f4210b1caa8cb322f92f2a2b 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-98042 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/e821ff19b8ef08255ff8d8234774ed814637e9bf https://git.kernel.org/stable/c/73a98f96811e2cb0f4210b1caa8cb322f92f2a2b