Skip to contentSkip to conversation

CVE-2026-92516: bpf: Fix offset warn check for bpf_res_spin_lock

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: Fix offset warn check for bpf_res_spin_lock

Sashiko pointed out correctly that the case statement for BPF_RES_SPIN_LOCK incorrectly checks offset for BPF_SPIN_LOCK. Fix it by checking res_spin_lock_off instead.

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

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

	Issue introduced in 6.15 with commit 0de2046137f976e7302d43ac01d9894d07ac1fff and fixed in 6.18.52 with commit dfdce1f20a7e5e826165c556fd3367c65387e966
	Issue introduced in 6.15 with commit 0de2046137f976e7302d43ac01d9894d07ac1fff and fixed in 7.2.6 with commit 92356df4aa2b044b62bc7e45e0d99231af147f29
	Issue introduced in 6.15 with commit 0de2046137f976e7302d43ac01d9894d07ac1fff and fixed in 7.3-rc1 with commit 04e19012efaec2bfd8c3b37fd8a6c3f1fe731ffc

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

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/btf.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/dfdce1f20a7e5e826165c556fd3367c65387e966
	https://git.kernel.org/stable/c/92356df4aa2b044b62bc7e45e0d99231af147f29
	https://git.kernel.org/stable/c/04e19012efaec2bfd8c3b37fd8a6c3f1fe731ffc