# CVE-2025-38586: bpf, arm64: Fix fp initialization for exception boundary

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 13% of CVEs (2026-11-30)
- Published: 2025-08-19T17:03:08.012Z
- Modified: 2026-10-15T22:18:46.390Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

bpf, arm64: Fix fp initialization for exception boundary

In the ARM64 BPF JIT when prog->aux->exception_boundary is set for a BPF
program, find_used_callee_regs() is not called because for a program
acting as exception boundary, all callee saved registers are saved.
find_used_callee_regs() sets `ctx->fp_used = true;` when it sees FP
being used in any of the instructions.

For programs acting as exception boundary, ctx->fp_used remains false
even if frame pointer is used by the program and therefore, FP is not
set-up for such programs in the prologue. This can cause the kernel to
crash due to a pagefault.

Fix it by setting ctx->fp_used = true for exception boundary programs as
fp is always saved in such programs.

(As written by CVE List.)

## Affected

- Linux Linux: from 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff before 0dbef493cae7d451f740558665893c000adb2321; from 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff before e23184725dbb72d5d02940222eee36dbba2aa422; from 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff before 1ce30231e0a2c8c361ee5f8f7f265fc17130adce; from 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff before b114fcee766d5101eada1aca7bb5fd0a86c89b35; 6.12 (not affected: before 6.12; from 6.12.42 up to 6.12.*; from 6.15.10 up to 6.15.*; from 6.16.1 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.12 before 6.12.42; from 6.13 before 6.15.10; from 6.16 before 6.16.1

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/0dbef493cae7d451f740558665893c000adb2321> (patch)
- <https://git.kernel.org/stable/c/e23184725dbb72d5d02940222eee36dbba2aa422> (patch)
- <https://git.kernel.org/stable/c/1ce30231e0a2c8c361ee5f8f7f265fc17130adce> (patch)
- <https://git.kernel.org/stable/c/b114fcee766d5101eada1aca7bb5fd0a86c89b35> (patch)

## Sources

- CVE List: [CVE-2025-38586](https://www.cve.org/CVERecord?id=CVE-2025-38586), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-38586](https://nvd.nist.gov/vuln/detail/CVE-2025-38586), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-38586 · Whole record: https://cve.day/CVE-2025-38586.json · Rebuilt by cve.day 2026-11-25T22:59:02.732Z
