Skip to contentSkip to conversation

CVE-2026-43030: bpf: Fix regsafe() for pointers to packet

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix regsafe() for pointers to packet

In case rold->reg->range == BEYOND_PKT_END && rcur->reg->range == N regsafe() may return true which may lead to current state with valid packet range not being explored. Fix the bug.

The Linux kernel CVE team has assigned CVE-2026-43030 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.10.155 with commit 95b6ec733752b31bfd166c4609d2c1b5cdde9b47 and fixed in 5.10.253 with commit b52f6d0ef7b308f9d05bbddb78749852f28e8e40
	Issue introduced in 5.11 with commit 6d94e741a8ff818e5518da8257f5ca0aaed1f269 and fixed in 5.15.203 with commit 37db6b9726d0bcf91cbdf9d63b558c50da49f968
	Issue introduced in 5.11 with commit 6d94e741a8ff818e5518da8257f5ca0aaed1f269 and fixed in 6.1.168 with commit 015a74476dc1ab6923d89f1ee009aaf43faa7185
	Issue introduced in 5.11 with commit 6d94e741a8ff818e5518da8257f5ca0aaed1f269 and fixed in 6.6.134 with commit b99d82706bd1511bb875e3de7154698fd9215c99
	Issue introduced in 5.11 with commit 6d94e741a8ff818e5518da8257f5ca0aaed1f269 and fixed in 6.12.81 with commit 7241da033fdc507b920e092dab1f97b945cb0370
	Issue introduced in 5.11 with commit 6d94e741a8ff818e5518da8257f5ca0aaed1f269 and fixed in 6.18.22 with commit 8aebe18069394f4a79d2d82080a0f806da449996
	Issue introduced in 5.11 with commit 6d94e741a8ff818e5518da8257f5ca0aaed1f269 and fixed in 6.19.12 with commit ca995b1462ec6db1e869100ba1fb7356bd3f22f0
	Issue introduced in 5.11 with commit 6d94e741a8ff818e5518da8257f5ca0aaed1f269 and fixed in 7.0 with commit a8502a79e832b861e99218cbd2d8f4312d62e225

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-43030

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/b52f6d0ef7b308f9d05bbddb78749852f28e8e40
	https://git.kernel.org/stable/c/37db6b9726d0bcf91cbdf9d63b558c50da49f968
	https://git.kernel.org/stable/c/015a74476dc1ab6923d89f1ee009aaf43faa7185
	https://git.kernel.org/stable/c/b99d82706bd1511bb875e3de7154698fd9215c99
	https://git.kernel.org/stable/c/7241da033fdc507b920e092dab1f97b945cb0370
	https://git.kernel.org/stable/c/8aebe18069394f4a79d2d82080a0f806da449996
	https://git.kernel.org/stable/c/ca995b1462ec6db1e869100ba1fb7356bd3f22f0
	https://git.kernel.org/stable/c/a8502a79e832b861e99218cbd2d8f4312d62e225