Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8BAA33002CB for ; Tue, 19 Aug 2025 17:22:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624130; cv=none; b=fScF2/3dAWwjXOFIjmnZXaVJYqimbWQteDJdgsmcqkY9br9j+u883B5Qzkul6HLkkT+m8KryoQ/WU8fFevLgL2p6vP/emoamdWBHcLluSt8BFjXw2M0QBwCB0WrivxM7DILx+IqCV2xVTjRZxrua0guG7LQfFKY6oyRw00eTYuc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624130; c=relaxed/simple; bh=jqFADo36zRHv17ZdRdrBQU9Wt1n+u/CfVBDQbNfuUO4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iuCro2FLnIujRGcFAZ8riCtkmfmwSHI7h6ILCzDKoO5fsiSc7WKFYhSjm0soV+1Sx6711CT5M82K9Hjon32mrd9TCl+odGm7GRIAlOHzu0Jw9cNagw3Tlq0HJiC7BsuxES634n/mULRGRL0EjjhLRQGBQjBYeC9bNkLUVD8xrDk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Uhn/7eOc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Uhn/7eOc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90171C4CEF1; Tue, 19 Aug 2025 17:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755624130; bh=jqFADo36zRHv17ZdRdrBQU9Wt1n+u/CfVBDQbNfuUO4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Uhn/7eOcNQ+8RIr8vkuigfmtf34JBR2YtL8SnYLmf+A0ej4XR7780ttXRgRrWGwWs G7KLVu2VirKC92CVSsUlHIIaHOi3/j2NPCgluAGDd3p8d2E2ofrX4KWAyZD6EPCBRb OQPe3engshV7pbwx9VEMvsz1Y4XRS2uCVg1DtGjA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38607: bpf: handle jset (if a & b ...) as a jump in CFG computation Date: Tue, 19 Aug 2025 19:18:53 +0200 Message-ID: <2025081922-CVE-2025-38607-c6ce@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2419; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7HJTbyKqDPcSr7UoBHGFpcw0XEi1io0LAD6cHT5DfAs=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlLNt6rVygUe3KkdnLF4dZL+1dsPL/u/vHLGxZ51yzKk T+top09ryOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm4nKLYX7Zi3mNOTq+kj5W 3PEqYb/l2QKW9zAsaD7EYdtUe/qE2peGv00y1teDz723BgA= 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: handle jset (if a & b ...) as a jump in CFG computation BPF_JSET is a conditional jump and currently verifier.c:can_jump() does not know about that. This can lead to incorrect live registers and SCC computation. E.g. in the following example: 1: r0 = 1; 2: r2 = 2; 3: if r1 & 0x7 goto +1; 4: exit; 5: r0 = r2; 6: exit; W/o this fix insn_successors(3) will return only (4), a jump to (5) would be missed and r2 won't be marked as alive at (3). The Linux kernel CVE team has assigned CVE-2025-38607 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 14c8552db64476ffc27c13dc6652fc0dac31c0ba and fixed in 6.15.10 with commit 65eb166b8636365ad3d6e36d50a7c5edfe6cc66e Issue introduced in 6.15 with commit 14c8552db64476ffc27c13dc6652fc0dac31c0ba and fixed in 6.16.1 with commit 261b30ad1516f4b9edd500aa6e8d6315c8fc109a Issue introduced in 6.15 with commit 14c8552db64476ffc27c13dc6652fc0dac31c0ba and fixed in 6.17-rc1 with commit 3157f7e2999616ac91f4d559a8566214f74000a5 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-2025-38607 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/65eb166b8636365ad3d6e36d50a7c5edfe6cc66e https://git.kernel.org/stable/c/261b30ad1516f4b9edd500aa6e8d6315c8fc109a https://git.kernel.org/stable/c/3157f7e2999616ac91f4d559a8566214f74000a5