From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796047611; b=GWb1PEg/x02BNoW7aJ5PrFICoqe8nTPNI6U8DTZsK2xZrYRPdaALqQt7ZuLn5BE/mD8M BDTFB2+0YaZmV5xiKCrfElQUbJowyKqaJcLbe8h5mnxy6tCK9rkMfM3w28C0gNcuDqb43 HOFz3XPjQg1M8XhWlFM8GQQKWOsqh04FQpF7G50gpSSBOvY4SlgfW9V7EQsBgV0jNB1vJ 5FFQHIFZGOsdHiqB07fkzBKxav1IPOyTV161iqQbUgXpYaxPewmhIh3Lc5Mi9I2TCpOJ2 BREyzHEtVZsgZDamEyWk8v/rNREtuNWP9wFBoeRBrnDQrmpPzPkcmF+EM74XUFbcz1A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796047611; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=wHSQGVd46i6TkJyegMRYc1XIv7+PtggFFRTaQ4fHZUI=; b=O3f8JkcHZtK7HUWLHkH2IShaYARkmU3R+41bv2oYa76OzaTixP3gO1jdAJK5OcbsGKY3 T7EtHevkJCVcxPcmCGkEHNhPeADXCy9mA8xj92nAeT6xHkI6zAzPELy+Tqdf/wacL7nJV ErjWFBFz6X5y7KbSe8vVVU0CkxRC0mbq3RDcdRykQrrwEGiUAL6rkq5YKFij9NjzQlbvW Zu+atORQnYydjqGq5xWiEXBG9Ie3SIon5p9aLjHjJKJXTY54gfinLlDjWSCszga443kPt iiMWBvSRQt5zaZ2pvvbg8U3GQApOdzcNmTZn6qRXkaxWHoKrdHP8Q2MTOzVAfWS1/qg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=NMfas0n9; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F989606A320 for ; Mon, 30 Nov 2026 14:06:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=NMfas0n9 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCBB31F000C1; Mon, 30 Nov 2026 14:06:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796047611; bh=wHSQGVd46i6TkJyegMRYc1XIv7+PtggFFRTaQ4fHZUI=; h=From:To:Cc:Subject:Date:Reply-To; b=NMfas0n9+9w3qB18Fx5n2/tGM6fE1WyAKMXkjMzHzEUn2JCggJpldTmsXRkuH5UNU DKzakNW4TnmpgnYXfp/dAcYohF/MOGlED8SIl54ojfrEjGPQykc56PilKIZlrk9wLU CekWwDfHUh0SKWuZViqFLGXxwQU4bm+q6RLtYVOA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-139291: bpf: Don't take a dynptr argument for a local dynptr Date: Mon, 30 Nov 2026 14:35:00 +0100 Message-ID: <2026113008-CVE-2026-139291-e4d6@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3034; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Py0Tzax6mo8gRjZTJQFHgY89M2IEQOAO1jatrCAAQvE=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm8VTd0PvScPRhi7nkj5dgskdj3TxRinzksnduRyix5X eAoMxtjRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkZwvDgs1+eQfO2+m+D2KI YPu6tnKBUe07BYb50V90NoidnZnE8Gly2vetUxZcKjDpBwA= 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 take a dynptr argument for a local dynptr A global function is verified on its own. A dynptr which it gets as an argument is assumed to be of type BPF_DYNPTR_TYPE_LOCAL, but the callers may pass one of any type, that of an skb for example. The type decides whether a write through the dynptr invalidates packet pointers, and whether a slice of it is invalidated together with them. Inside of the function neither happens. It can take a packet pointer from its context argument, or a slice from the dynptr, write through the dynptr and go on using the pointer, although the write may have reallocated the head of the skb. Assume the type of an skb dynptr instead. Nothing becomes forbidden for the dynptr itself, and a clone inherits the caution. The dynptr which the callback of bpf_user_ringbuf_drain() gets is known to be local, and stays so. The Linux kernel CVE team has assigned CVE-2026-139291 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit a64bfe618665ea9c722f922cba8c6e3234eac5ac and fixed in 6.12.120 with commit 0fec302c14ef061fdcc8857cb96152d617873229 Issue introduced in 6.8 with commit a64bfe618665ea9c722f922cba8c6e3234eac5ac and fixed in 6.18.66 with commit e09c38abd0f8e1e1738544f2a572558cf6d511e1 Issue introduced in 6.8 with commit a64bfe618665ea9c722f922cba8c6e3234eac5ac and fixed in 7.3.6 with commit 179e794854f0a72051e5d30c97e7ab85c6370ecc Issue introduced in 6.8 with commit a64bfe618665ea9c722f922cba8c6e3234eac5ac and fixed in 7.4-rc1 with commit b7f97db88948aa511bcd989978f181e1367e0e8b 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-139291 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/0fec302c14ef061fdcc8857cb96152d617873229 https://git.kernel.org/stable/c/e09c38abd0f8e1e1738544f2a572558cf6d511e1 https://git.kernel.org/stable/c/179e794854f0a72051e5d30c97e7ab85c6370ecc https://git.kernel.org/stable/c/b7f97db88948aa511bcd989978f181e1367e0e8b