CVE-2025-38586
bpf, arm64: Fix fp initialization for exception boundary
Reported by linux · Published August 19, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-devel | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff |
| Linux | Linux | 6.12, 0, 6.12.42 |
| amazon:2023 | kernel6.12-devel | 0 |
| linux | linux_kernel | 6.12, 6.12, 6.12 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| Linux | Linux | 6.17, 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff, 5d4fa9ec5643a5c75d3c1e6abf50fb9284caf1ff |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel-livepatch-6.12.46-66.121 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
Timeline
- Aug 19, 2025 CVE Published
- Aug 20, 2025 EPSS Score (30 in total, the first dated here)
- Aug 20, 2025 Coalition ESS Score (7 in total, the first dated here)
- Oct 12, 2025 PoC Published (10 in total, the first dated here)
- Dec 15, 2025 Security Advisory (181 in total, the first dated here)
- Apr 20, 2026 Distribution Patch (157 in total, the first dated here)
- Oct 13, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38586
vulnetix vdb fixes CVE-2025-38586
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-2025-38586/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart