VDB

CVE-2026-98641

CVE-2026-98641 PUBLISHED

bpf, arm64: set up the frame pointer for the exception callback

Reported by linux · Published October 18, 2026

In the Linux kernel, the following vulnerability has been resolved: bpf, arm64: set up the frame pointer for the exception callback A program acting as exception boundary saves all callee-saved registers, so build_prologue() takes the exception_cb path and never calls push_callee_regs(). That is the only place find_used_callee_regs() runs, and with it the only place ctx->fp_used is set, so the callback prologue does not emit the mov x25, sp that points BPF_REG_FP at the frame the callback runs on. x25 keeps whatever it held when bpf_throw() was called. If the throw came from a subprogram that uses its own BPF stack, that is the subprogram's frame pointer, and since the subprogram never returns it never restores x25 either. Stack accesses through BPF_REG_FP are rewritten to be stack pointer relative, so those still land in the callback's own frame. Materializing the register does not: a callback that passes the address of a local variable to a helper hands over an address in the dead subprogram's frame. That address is below the callback's stack pointer by then, and the helper's own call chain covers it, so the helper can write over its own return address. 0x1234 below is the value the helper was asked to store: pc : 0x1234 lr : 0x1234 Call trace: 0x1234 (P) bpf_test_run+0x188/0x3e0 bpf_prog_test_run_skb+0x47c/0x998 __sys_bpf+0xbdc/0xdd8 Kernel panic - not syncing: Oops: Fatal exception in interrupt Set ctx->fp_used on the exception callback path so that the existing code further down sets x25 from the stack pointer. The epilogue restores it from the main program's save area along with the other callee-saved registers, as it already does. x86 sets the frame pointer for the callback from the argument it is passed, and powerpc computes it from the stack pointer.

EPSS 0.17% · 6.2th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-tools-develAmazon Linux1:6.12.113-138.209.amzn2023
LinuxLinuxecdd770a9fc3eaf6c3127c5991312b84774a7b0f, b67b4c763f211e7a6391c356fef552e2ea63f08a, 6.12

Risk scores

EPSS Score
0.17%
6.2th percentile

Affected products

VendorProductVersions
LinuxLinux5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff
LinuxLinux6.12, 0, 6.12.112
amazon:2023kernel6.12-tools-devel0
LinuxLinux7.2.9, 7.3, 6.18.55
amazon:2023bpftool6.180
amazon:2023kernel-livepatch-6.18.56-125.1640
amazon:2023microvm-kernel6.180
amazon:2023kernel6.18-devel0
amazon:2023perf6.180
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.12-tools0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.18-headers0
amazon:2023kernel6.12-devel0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.18-tools0
LinuxLinux
amazon:2023perf6.120
linuxlinux_kernel6.12, 6.12, 6.12

…and 8 more

Timeline

  • Oct 18, 2026 Coalition ESS Score
  • Oct 18, 2026 CVE Published
  • Oct 19, 2026 EPSS Score (3 in total, the first dated here)
  • Oct 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-98641
vulnetix vdb fixes CVE-2026-98641

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98641/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›