Skip to contentSkip to conversation

CVE-2026-72423: bpf: Guard conntrack opts error writes

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: Guard conntrack opts error writes

The conntrack lookup and allocation kfuncs take an opts pointer together with an opts__sz argument. The verifier checks only the memory range described by opts__sz, but the wrappers unconditionally write opts->error whenever the internal lookup or allocation helper returns an error.

For an invalid size smaller than the end of opts->error, that write can land outside the verifier-checked range. Keep returning NULL for invalid arguments, but only report the error through opts->error when the supplied size includes the field.

This preserves error reporting for the supported 12-byte and 16-byte layouts, and for other invalid sizes that still include opts->error.

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

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

	Issue introduced in 5.18 with commit b4c2b9593a1c4c3a718370e34af28e817fd5e5c6 and fixed in 7.1.5 with commit dd74c80203842a21b2ebb9f70d1260d9aa20fa05
	Issue introduced in 5.18 with commit b4c2b9593a1c4c3a718370e34af28e817fd5e5c6 and fixed in 7.2-rc1 with commit 6f6183a39533d727deaa5061cadae6dd9e6744d0

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

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/netfilter/nf_conntrack_bpf.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/dd74c80203842a21b2ebb9f70d1260d9aa20fa05
	https://git.kernel.org/stable/c/6f6183a39533d727deaa5061cadae6dd9e6744d0