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 D061C1A315D for ; Thu, 27 Mar 2025 16:37:27 +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=1743093447; cv=none; b=r2NxbGXGLKJy2EBav+0a6udS7BtqPmmdoTs/gCFs+k2fXKs+w5u0vED6zbY0AQEe46R0oON/b2spJWKRcX3fv0hyPkf2P9kRoVjIP/kmf24uJztC64WbW+WLwC2CQD2d/kgIh5sbURCuDxx0+wDJYO8KePKzr77wWOD4xN219qA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093447; c=relaxed/simple; bh=+cvWCzgB8YGXunsBP4RXoIY6VKnUfJ9TtzFzPXzJDSI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iQtgMbhHWSFdsw5N5XDAxVNlD+/F2wIHXTjm76SboHGhDOWI8x+8LFpv8ADneeqmwaBm4j4ii09F4BXxDPBmbE0mAPvJ6tG8ghYOmPC6G8s1K30F+QqO4bR/N8g8MB6+8dbbBKIW1TigRLVvrrk6xj26WSQSCNoYajRyFq1o3tc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jibOh1jv; 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="jibOh1jv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCE1DC4CEDD; Thu, 27 Mar 2025 16:37:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093447; bh=+cvWCzgB8YGXunsBP4RXoIY6VKnUfJ9TtzFzPXzJDSI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jibOh1jvJOjz/2hRfOFSG4s8Qp74oUHfGzCMikzxwqHIt6KuJuCE9kK7QR+ePQ4zt J1kx/oxsRrTthRfJBrGzizzZPKGp23xqPjjs7bV3X648440fvNOrXTPJ2Qsuz+wn7B 6vLSP1C8Cz9iHvPe6e1k9wew216bOcQ6E/vZnmzA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52928: bpf: Skip invalid kfunc call in backtrack_insn Date: Thu, 27 Mar 2025 17:37:18 +0100 Message-ID: <2025032718-CVE-2023-52928-e380@gregkh> X-Mailer: git-send-email 2.49.0 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=2634; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+cvWCzgB8YGXunsBP4RXoIY6VKnUfJ9TtzFzPXzJDSI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlP6/Z53tj973nRmiOXFrX/f3/bzLbl9H65j55zj53NT pR4n70wtSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmYlDAsGBG0LOLzrf2eHms Wyq25ZRzAccb71UMCw6z2sntM3tp9vW8VcAv7lcr4uYFlwIA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: bpf: Skip invalid kfunc call in backtrack_insn The verifier skips invalid kfunc call in check_kfunc_call(), which would be captured in fixup_kfunc_call() if such insn is not eliminated by dead code elimination. However, this can lead to the following warning in backtrack_insn(), also see [1]: ------------[ cut here ]------------ verifier backtracking bug WARNING: CPU: 6 PID: 8646 at kernel/bpf/verifier.c:2756 backtrack_insn kernel/bpf/verifier.c:2756 __mark_chain_precision kernel/bpf/verifier.c:3065 mark_chain_precision kernel/bpf/verifier.c:3165 adjust_reg_min_max_vals kernel/bpf/verifier.c:10715 check_alu_op kernel/bpf/verifier.c:10928 do_check kernel/bpf/verifier.c:13821 [inline] do_check_common kernel/bpf/verifier.c:16289 [...] So make backtracking conservative with this by returning ENOTSUPP. [1] https://lore.kernel.org/bpf/CACkBjsaXNceR8ZjkLG=dT3P=4A8SBsg0Z5h5PWLryF5=ghKq=g@mail.gmail.com/ The Linux kernel CVE team has assigned CVE-2023-52928 to this issue. Affected and fixed versions =========================== Fixed in 5.15.93 with commit 6e2fac197de2c4c041bdd8982cffb104689113f1 Fixed in 6.1.11 with commit 74eec8266f37aff609db6a2f2b093e56a11c28c4 Fixed in 6.2 with commit d3178e8a434b58678d99257c0387810a24042fb6 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-2023-52928 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/6e2fac197de2c4c041bdd8982cffb104689113f1 https://git.kernel.org/stable/c/74eec8266f37aff609db6a2f2b093e56a11c28c4 https://git.kernel.org/stable/c/d3178e8a434b58678d99257c0387810a24042fb6