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 7E09D2773DE for ; Sat, 14 Feb 2026 15:22:50 +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=1771082570; cv=none; b=sAyz1aoTdcwAPSpGnKBNntcUJWgVTVIuITZuVOwHSvSI1YYCLq3ogG90GRTya540qIznIAFY1YKLBoIwxkIzQeoeShWx1gUYzefExsH4+dC5kEfMC7Unm/q5uBXV3+4OdG7kbR454xA3yxzDagQRFGVHoSags1zKyu9S+f+JQMM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771082570; c=relaxed/simple; bh=0SObJZ0+kziHqhKLGKW2wdexRcgPpQ+ybppc675pZqU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a+HMbjt9/sK9WUw4pJdC9FD8iFr7a+hr6y6MFCUmq4KrJgXyGxUBS33YcUpamz4p6QGdMo0XuH4A9dttTt2XsAeKPFOkZ585ORNqAQfWDrN7SFBcqeNigwxLRDYKh1xdiYl3ZgxweV/SqXHfrJlW2JIPJoGe7ng0r/w3nxJKurU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e1WL2NQ3; 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="e1WL2NQ3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7F0EC16AAE; Sat, 14 Feb 2026 15:22:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1771082570; bh=0SObJZ0+kziHqhKLGKW2wdexRcgPpQ+ybppc675pZqU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=e1WL2NQ37iPwIZUI4UudvO8B0vAyiyqlJpAB8cYI6TvgHByudml9U9TWkts0E+xeN ZwzoxtvQKj4s5qZH1Bitf/H8cAydEQgreBMgOgG2HAd5AuY3/IH4jZ0FPgXYF6nrCG tZGbIMbjGJBGaDJZJzwsreIiHrTDGIwLmTLu9dQQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23140: bpf, test_run: Subtract size of xdp_frame from allowed metadata size Date: Sat, 14 Feb 2026 16:22:34 +0100 Message-ID: <2026021430-CVE-2026-23140-fed3@gregkh> X-Mailer: git-send-email 2.53.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=3332; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=r4yRHZz9ClUGSS6IZzcQti6fdgF7VJ8FRSocI6RHzAs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkTJpv1zWO6NzOv8vhGY0sHrv/fFjQ8eVLf+r7XsFsoX Up82znDjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI00aG+SX7LkefW7DK0etR vfXbAN0Y7XN+vAyz2X7vFfN8uEarpnrDDuVjKwO+Pe1LBwA= 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, test_run: Subtract size of xdp_frame from allowed metadata size The xdp_frame structure takes up part of the XDP frame headroom, limiting the size of the metadata. However, in bpf_test_run, we don't take this into account, which makes it possible for userspace to supply a metadata size that is too large (taking up the entire headroom). If userspace supplies such a large metadata size in live packet mode, the xdp_update_frame_from_buff() call in xdp_test_run_init_page() call will fail, after which packet transmission proceeds with an uninitialised frame structure, leading to the usual Bad Stuff. The commit in the Fixes tag fixed a related bug where the second check in xdp_update_frame_from_buff() could fail, but did not add any additional constraints on the metadata size. Complete the fix by adding an additional check on the metadata size. Reorder the checks slightly to make the logic clearer and add a comment. The Linux kernel CVE team has assigned CVE-2026-23140 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit b6f1f780b3932ae497ed85e79bc8a1e513883624 and fixed in 6.1.161 with commit e7440935063949d6f2c10f7328d960d0ff4bce90 Issue introduced in 5.18 with commit b6f1f780b3932ae497ed85e79bc8a1e513883624 and fixed in 6.6.121 with commit 7c81ad5e580bd8441f8a521a8d34824ce6582ae5 Issue introduced in 5.18 with commit b6f1f780b3932ae497ed85e79bc8a1e513883624 and fixed in 6.12.66 with commit 6447e697cfa8a43a8e491cb81bcc390d0f28f8ba Issue introduced in 5.18 with commit b6f1f780b3932ae497ed85e79bc8a1e513883624 and fixed in 6.18.6 with commit 31e37f44b60679d90b9f999c91371b15291be8e0 Issue introduced in 5.18 with commit b6f1f780b3932ae497ed85e79bc8a1e513883624 and fixed in 6.19 with commit e558cca217790286e799a8baacd1610bda31b261 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-23140 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: net/bpf/test_run.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/e7440935063949d6f2c10f7328d960d0ff4bce90 https://git.kernel.org/stable/c/7c81ad5e580bd8441f8a521a8d34824ce6582ae5 https://git.kernel.org/stable/c/6447e697cfa8a43a8e491cb81bcc390d0f28f8ba https://git.kernel.org/stable/c/31e37f44b60679d90b9f999c91371b15291be8e0 https://git.kernel.org/stable/c/e558cca217790286e799a8baacd1610bda31b261