---
id: CVE-2025-38586
title: |-
  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 n…
summary: |-
  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 n…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-476
  - CWE-908
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 6.12, < 6.12.42'
  - 'linux_kernel >= 6.13, < 6.15.10'
  - 'linux_kernel >= 6.16, < 6.16.1'
patched:
  - linux_kernel 6.16.1
published: '2025-08-19'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T22:18:46.390'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-38586'
references:
  - url: 'https://git.kernel.org/stable/c/0dbef493cae7d451f740558665893c000adb2321'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/1ce30231e0a2c8c361ee5f8f7f265fc17130adce'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b114fcee766d5101eada1aca7bb5fd0a86c89b35'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/e23184725dbb72d5d02940222eee36dbba2aa422'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-38586.json
  - url: 'https://access.redhat.com/security/cve/CVE-2025-38586'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2389486'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2025-38586'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-38586'
  - url: >-
      https://lore.kernel.org/linux-cve-announce/2025081915-CVE-2025-38586-789b@gregkh/T
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - cve.org
  - score-dispute
epss: 0.00176
epssPercentile: 0.07058
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-15T21:52:01.426451Z'
scores:
  nvd: 7.8
  vendor: 4.4
  cna: 7.8
ingestedAt: '2026-10-15T22:48:25.514Z'
---

## Overview

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.

## Affected

- `linux_kernel >= 6.12, < 6.12.42`
- `linux_kernel >= 6.13, < 6.15.10`
- `linux_kernel >= 6.16, < 6.16.1`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.16.1`

## Vendor advisories

- **Red Hat VEX** · Low · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 9 · updated 2026-10-16 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-38586.json)
