CVE-2025-38586
JSON

7.8high

bpf, arm64: Fix fp initialization for exception boundary

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.28% (higher than 13% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.12 before 6.12.42, from 6.13 before 6.15.10, from 6.16 before 6.16.1NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf, arm64: Arreglar la inicialización de fp para el límite de excepción En el JIT BPF de ARM64 cuando se configura prog->aux->exception_boundary para un programa BPF, no se llama a find_used_callee_regs() porque para un programa que actúa como límite de excepción, se guardan todos los registros guardados del llamado. find_used_callee_regs() establece `ctx->fp_used = true;` cuando ve que se usa FP en cualquiera de las instrucciones. Para los programas que actúan como límite de excepción, ctx->fp_used permanece falso incluso si el programa usa el puntero de frame y, por lo tanto, FP no está configurado para tales programas en el prólogo. Esto puede hacer que el kernel se bloquee debido a un fallo de página. Corríjalo configurando ctx->fp_used = true para los programas con límite de excepción, ya que fp siempre se guarda en tales programas.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-38586 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-38586 changed 2026-10-15Public domain