Skip to contentSkip to conversation

CVE-2026-90211: bpf, s390: Clear fetch destination on faulting arena atomic

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, s390: Clear fetch destination on faulting arena atomic

Same missing register clear as on riscv64. A RMW atomic on an arena pointer is converted to BPF_PROBE_ATOMIC and gets an exception table entry, but bpf_jit_probe_atomic_pre() only fills in the arena base and the probe offset, leaving probe->reg at the -1 that bpf_jit_probe_init() set, which bpf_jit_probe_post() writes into the entry and ex_handler_bpf() then reads back as "there is nothing to clear".

That is right for a plain BPF_{ADD,AND,OR,XOR}, which only writes memory, but an RMW carrying BPF_FETCH also reads the old value into a register:
src_reg for BPF_{ADD,AND,OR,XOR} | BPF_FETCH and BPF_XCHG, and r0 for BPF_CMPXCHG. So on a fault over an unmapped arena page the program resumes at the landing pad with whatever that register held before the atomic instead of the 0 that every other BPF_PROBE_* access delivers.

Fill probe->reg in from bpf_atomic_load_reg(). Unlike x86-64 and arm64, s390x does not report arena violations from its exception handler, so there is no access direction to correct here, only the missing register clear.

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

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

	Issue introduced in 6.11 with commit 2f9469484a3b52c66b799de73bd1ca75617bc8d5 and fixed in 6.12.110 with commit 1a26541b3f60ce447433a4c4dd56edb10d2cd580
	Issue introduced in 6.11 with commit 2f9469484a3b52c66b799de73bd1ca75617bc8d5 and fixed in 7.2.6 with commit 44b702fceb4cf3a4ddbfb496f487b034814bf1a3
	Issue introduced in 6.11 with commit 2f9469484a3b52c66b799de73bd1ca75617bc8d5 and fixed in 7.3-rc1 with commit cc3e12330599f097f0e1f792435686ddc276f26d

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

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/s390/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/1a26541b3f60ce447433a4c4dd56edb10d2cd580
	https://git.kernel.org/stable/c/44b702fceb4cf3a4ddbfb496f487b034814bf1a3
	https://git.kernel.org/stable/c/cc3e12330599f097f0e1f792435686ddc276f26d