Skip to contentSkip to conversation

CVE-2026-72402: bpf: Mask pseudo pointer values in verifier logs

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

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: Mask pseudo pointer values in verifier logs

print_bpf_insn() masks ldimm64 immediates for pointer-bearing pseudo sources when pointer leaks are not allowed, but the mask only covers BPF_PSEUDO_MAP_FD and BPF_PSEUDO_MAP_VALUE.

BPF_PSEUDO_MAP_IDX, BPF_PSEUDO_MAP_IDX_VALUE, and BPF_PSEUDO_BTF_ID can also be resolved to kernel pointer values before the verifier log prints the instruction. Include them in the existing pointer classification so the log prints 0x0 instead of the rewritten address.

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

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

	Issue introduced in 5.10 with commit 4976b718c3551faba2c0616ef55ebeb74db1c5ca and fixed in 7.1.5 with commit 1c53d16b174dd9e02243fc0e85089e2aa6a0d21a
	Issue introduced in 5.10 with commit 4976b718c3551faba2c0616ef55ebeb74db1c5ca and fixed in 7.2-rc2 with commit 72a85e9464a5332fb2cd7efd26d9295275ceda2d

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

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/disasm.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/1c53d16b174dd9e02243fc0e85089e2aa6a0d21a
	https://git.kernel.org/stable/c/72a85e9464a5332fb2cd7efd26d9295275ceda2d