CVE-2026-92517: bpf, riscv: Fix extable handling for arena load_acquire
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
bpf, riscv: Fix extable handling for arena load_acquire
emit_atomic_ld_st() returns 1 to have build_body() skip the zext after a sub-word load_acquire. The caller does "ret = ret ?:add_exception_handler(...)", which skips add_exception_handler() on any non-zero ret, so the extable entry is missing and a faulting PROBE_ATOMIC load_acquire oopses.
REG_DONT_CLEAR_MARKER leaves rd stale on fault, and the verifier still thinks the load overwrote it, so a program can leak it through a map.
Check ret >= 0 before calling add_exception_handler(), and pass rd for LOAD_ACQ so the fault zeroes rd like a PROBE_MEM load. Return ret unchanged for the zext skip.
The Linux kernel CVE team has assigned CVE-2026-92517 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit fb7cefabae8117c203155ef169a386bec43bbba9 and fixed in 6.18.52 with commit 26d9496c826586338d1b8c27edfec4a19a89f462 Issue introduced in 6.18 with commit fb7cefabae8117c203155ef169a386bec43bbba9 and fixed in 7.2.6 with commit 08fe2eaa609180c1baeb76c2629a9c82263b0427 Issue introduced in 6.18 with commit fb7cefabae8117c203155ef169a386bec43bbba9 and fixed in 7.3-rc1 with commit 5eb8921371c6fd117d4a328b6053dfda38707df8
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-92517
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/riscv/net/bpf_jit_comp64.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/26d9496c826586338d1b8c27edfec4a19a89f462 https://git.kernel.org/stable/c/08fe2eaa609180c1baeb76c2629a9c82263b0427 https://git.kernel.org/stable/c/5eb8921371c6fd117d4a328b6053dfda38707df8