All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-2026-139291: bpf: Don't take a dynptr argument for a local dynptr
@ 2026-11-30 13:35 Greg Kroah-Hartman
  0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-11-30 13:35 UTC (permalink / raw)
  To: linux-cve-announce; +Cc: Greg Kroah-Hartman

From: Greg Kroah-Hartman <gregkh@kernel.org>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 13:35 CVE-2026-139291: bpf: Don't take a dynptr argument for a local dynptr Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.