# CVE-2026-98641: bpf, arm64: set up the frame pointer for the exception callback

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-18T15:20:12.730Z
- **Modified:** 2026-10-19T10:19:28.340Z

## Who should check

- Anyone running Linux \>= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \< ecdd770a9fc3eaf6c3127c5991312b84774a7b0f; \>= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \< b67b4c763f211e7a6391c356fef552e2ea63f08a; \>= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \< d7cd5ebe13989f265015910faa25e5d50faa4c22; \>= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \< ef1fb82f12186dd26153b14d9fbcf4ec98db81b3
- Anyone running Linux 6.12

## Description

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.

## Affected and fixed versions

- Linux: \>= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \< ecdd770a9fc3eaf6c3127c5991312b84774a7b0f; \>= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \< b67b4c763f211e7a6391c356fef552e2ea63f08a; \>= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \< d7cd5ebe13989f265015910faa25e5d50faa4c22; \>= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \< ef1fb82f12186dd26153b14d9fbcf4ec98db81b3 (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98641. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98641.md
Affected: Linux >= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, < ecdd770a9fc3eaf6c3127c5991312b84774a7b0f; >= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, < b67b4c763f211e7a6391c356fef552e2ea63f08a; >= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, < d7cd5ebe13989f265015910faa25e5d50faa4c22; >= 5d4fa9ec5643a5c75d3c1e6…
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98641 being exploited?

There is no confirmed exploitation: CVE-2026-98641 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98641?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98641?

Linux \>= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \< ecdd770a9fc3eaf6c3127c5991312b84774a7b0f; \>= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \< b67b4c763f211e7a6391c356fef552e2ea63f08a; \>= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \< d7cd5ebe13989f265015910faa25e5d50faa4c22; \>= 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, \< ef1fb82f12186dd26153b14d9fbcf4ec98db81b3; Linux 6.12.

### Is there a fix for CVE-2026-98641?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98641?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/ecdd770a9fc3eaf6c3127c5991312b84774a7b0f>
- other: <https://git.kernel.org/stable/c/b67b4c763f211e7a6391c356fef552e2ea63f08a>
- other: <https://git.kernel.org/stable/c/d7cd5ebe13989f265015910faa25e5d50faa4c22>
- other: <https://git.kernel.org/stable/c/ef1fb82f12186dd26153b14d9fbcf4ec98db81b3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98641>

HTML: <https://flawdb.com/CVE-2026-98641> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98641>
