Skip to contentSkip to conversation

CVE-2025-37963: arm64: bpf: Only mitigate cBPF programs loaded by unprivileged users

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 20, 2025

lore
Share & tools
lore
#0 lore raw

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

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

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

arm64: bpf: Only mitigate cBPF programs loaded by unprivileged users

Support for eBPF programs loaded by unprivileged users is typically disabled. This means only cBPF programs need to be mitigated for BHB.

In addition, only mitigate cBPF programs that were loaded by an unprivileged user. Privileged users can also load the same program via eBPF, making the mitigation pointless.

The Linux kernel CVE team has assigned CVE-2025-37963 to this issue.

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

	Fixed in 6.1.139 with commit 6e52d043f7dbf1839a24a3fab2b12b0d3839de7a
	Fixed in 6.6.91 with commit 80251f62028f1ab2e09be5ca3123f84e8b00389a
	Fixed in 6.12.29 with commit e5f5100f1c64ac6c72671b2cf6b46542fce93706
	Fixed in 6.14.7 with commit 477481c4348268136227348984b6699d6370b685
	Fixed in 6.15-rc7 with commit f300769ead032513a68e4a02e806393402e626f8

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-2025-37963

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:

	arch/arm64/net/bpf_jit_comp.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/6e52d043f7dbf1839a24a3fab2b12b0d3839de7a
	https://git.kernel.org/stable/c/80251f62028f1ab2e09be5ca3123f84e8b00389a
	https://git.kernel.org/stable/c/e5f5100f1c64ac6c72671b2cf6b46542fce93706
	https://git.kernel.org/stable/c/477481c4348268136227348984b6699d6370b685
	https://git.kernel.org/stable/c/f300769ead032513a68e4a02e806393402e626f8