Skip to contentSkip to conversation

CVE-2026-92520: bpf: Zero queue and stack outputs on lock failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

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: Zero queue and stack outputs on lock failure

Queue and stack pop/peek helpers accept an uninitialized output buffer because the verifier expects the helper to initialize it. The empty-map error path clears the buffer, but a failed lock acquisition returns -EBUSY without writing it.

Clear the output before returning -EBUSY so BPF programs cannot observe uninitialized stack contents after a failed helper call.

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

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

	Issue introduced in 6.6 with commit a34a9f1a19afe9c60ca0ea61dfeee63a1c2baac8 and fixed in 6.18.52 with commit 1534c4bff3aaca19c4c9a82f93e9b81f7c983de3
	Issue introduced in 6.6 with commit a34a9f1a19afe9c60ca0ea61dfeee63a1c2baac8 and fixed in 7.2.6 with commit e2396b8a562073787e627a5f483f1bc5c452fa6a
	Issue introduced in 6.6 with commit a34a9f1a19afe9c60ca0ea61dfeee63a1c2baac8 and fixed in 7.3-rc1 with commit 7ac6e1ae41a09f1dd4baeeff1d028ae49ee01232
	Issue introduced in 5.4.258 with commit 40e34ea01748e5b8afdd40a172868be1e1ab0ede
	Issue introduced in 5.10.198 with commit 388c9d3eefaea99828ee5000c693128a5b41ee7c
	Issue introduced in 5.15.134 with commit acabf5df49aa3a4f9c96200102d893351b511a88
	Issue introduced in 6.1.56 with commit e388671635acf470f0986d874389148fd234620b
	Issue introduced in 6.5.6 with commit 232f0ba4d69263af5912e279fcc32fef2882b1dc

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

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/queue_stack_maps.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/1534c4bff3aaca19c4c9a82f93e9b81f7c983de3
	https://git.kernel.org/stable/c/e2396b8a562073787e627a5f483f1bc5c452fa6a
	https://git.kernel.org/stable/c/7ac6e1ae41a09f1dd4baeeff1d028ae49ee01232