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 0836734AAEB for ; Wed, 24 Dec 2025 13:11:38 +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=1766581899; cv=none; b=SgGv9yfKRHt81Ndn/v0iqELNYRtCb2sYXRiGgYEuy4kfZCpBC86htAqtmfmD7eZptrR+KmrahsPJ5MbdAXQQCzBTfA06IofEsHFFlxU2TPAF5Efknlc+yh4PWOZRnzlOUvmGsY2/GUU7Ap0024ZDLKKcnjl8cNtnslPi6aOCrWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581899; c=relaxed/simple; bh=NMIDOBSwldQ5s8qMrwCWU6r1xqhn5HHsOaDBknXddsk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J4BscmvKJXl5sH0TRsLur3dlkY4ZZRhwD/vPcOPCBxY7T+T7nb7lyEGZ52R0R6gETMzJUBr6XAe4Qd0dukAxxDNpa150hgWQM287dkwPl2dRuxGPmlYR+eY5TSTcNq0WhIBMdkvNUJrg7BctQKvKISF43grxOI5iMX54onbFwDo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z96p+hp+; 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="z96p+hp+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 402C0C116D0; Wed, 24 Dec 2025 13:11:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581898; bh=NMIDOBSwldQ5s8qMrwCWU6r1xqhn5HHsOaDBknXddsk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=z96p+hp+YUkQlt63+phWYCa4NgnGvd7UCSqN2Qim4/IxOQ1f4EvsIOf2lYanIpnZL aAdZn3PfOJxY2UOSyk5X7qssuWbYrHqVtxppoZNCWZ9kK0s5/nsp345NiYnmFBdfGp NfjKmhc7UXHZzgFf5aKShtyw/5b2rwGco8aq4Zq8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54145: bpf: drop unnecessary user-triggerable WARN_ONCE in verifierl log Date: Wed, 24 Dec 2025 14:07:42 +0100 Message-ID: <2025122424-CVE-2023-54145-421d@gregkh> X-Mailer: git-send-email 2.52.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=2374; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rwQWHjtuEHTI8ZKYorsfcyL+fpdUqoevrOPmaOT4wZA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneTwPcFCQ367ndMGMXFJo3cd5pUVUeWdM2TqM/T7zkE xaaSgZ1xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwETS3RgWTNmaXxFqZX5DN/dR J9f1pbnXzbe/ZJjDs/sm86o1s+xOxyW+4TqT85vl6F1bAA== 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: drop unnecessary user-triggerable WARN_ONCE in verifierl log It's trivial for user to trigger "verifier log line truncated" warning, as verifier has a fixed-sized buffer of 1024 bytes (as of now), and there are at least two pieces of user-provided information that can be output through this buffer, and both can be arbitrarily sized by user: - BTF names; - BTF.ext source code lines strings. Verifier log buffer should be properly sized for typical verifier state output. But it's sort-of expected that this buffer won't be long enough in some circumstances. So let's drop the check. In any case code will work correctly, at worst truncating a part of a single line output. The Linux kernel CVE team has assigned CVE-2023-54145 to this issue. Affected and fixed versions =========================== Fixed in 6.1.107 with commit 40c88c429a598006f91ad7a2b89856cd50b3a008 Fixed in 6.4.7 with commit 926a175026fed5d534f587ea4ec3ec49265cd3c5 Fixed in 6.5 with commit cff36398bd4c7d322d424433db437f3c3391c491 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-54145 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/log.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/40c88c429a598006f91ad7a2b89856cd50b3a008 https://git.kernel.org/stable/c/926a175026fed5d534f587ea4ec3ec49265cd3c5 https://git.kernel.org/stable/c/cff36398bd4c7d322d424433db437f3c3391c491