CVE-2025-38339
published high CVSS 3.1 · 7.8powerpc/bpf: fix JIT code size calculation of bpf trampoline
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd243b62b7bd3d5314382d3b54e4992226245e936 to < 7833deb95e05bec146414b3a2feb24f025ca27c0 · d243b62b7bd3d5314382d3b54e4992226245e936 to < 59ba025948be2a92e8bc9ae1cbdaf197660bd508 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.13 (affected) · 0 to < 6.13 (unaffected · semver) · 6.15.4 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21179-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaults390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaults390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21179-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21179-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21179-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaults390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaults390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21179-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21179-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21179-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaults390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaults390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21179-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21179-1 |
| SUSE / openSUSE | SLE-16 | kernelaarch64 | Advisory build | 64kb-6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernelaarch64 | Advisory build | 64kb-devel-6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernelaarch64 | Advisory build | 64kb-extra-6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-64kbaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-64kb-develaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-64kb-extraaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaultaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaultaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaultppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaultppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaults390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaults390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaultx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaultx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-baseaarch64 | Advisory build | 6.12.0-160000.6.1.160000.2.4 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-baseppc64le | Advisory build | 6.12.0-160000.6.1.160000.2.4 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-basex86_64 | Advisory build | 6.12.0-160000.6.1.160000.2.4 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-develaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-develaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-develppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-develppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-devels390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-devels390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-develx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-develx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-extraaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-extraaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-extrappc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-extrappc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-extras390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-extras390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-extrax86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-extrax86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-livepatchppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-livepatchppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-livepatchs390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-livepatchs390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-livepatchx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-livepatchx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-vdsox86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-default-vdsox86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-develnoarch | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-develnoarch | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-docsnoarch | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-docsnoarch | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-docs-htmlnoarch | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-docs-htmlnoarch | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmallaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmallaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmallppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmallppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmallx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmallx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmall-develaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmall-develaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmall-develppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmall-develppc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmall-develx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmall-develx86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmall-vdsox86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-kvmsmall-vdsox86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-macrosnoarch | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-macrosnoarch | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-obs-qaaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-obs-qaaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-obs-qappc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-obs-qappc64le | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-obs-qas390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-obs-qas390x | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-obs-qax86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-obs-qax86_64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-sourcenoarch | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-sourcenoarch | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-source-vanillanoarch | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
| SUSE / openSUSE | SLE-16 | kernel-source-vanillanoarch | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 |
| SUSE / openSUSE | SLE-16 | kernel-symsaarch64 | Advisory build | 6.12.0-160000.6.1 | SUSE-SU-2025:20994-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: powerpc/bpf: fix JIT code size calculation of bpf trampoline arch_bpf_trampoline_size() provides JIT size of the BPF trampoline before the buffer for JIT'ing it is allocated. The total number of instructions emitted for BPF trampoline JIT code depends on where the final image is located. So, the size arrived at with the dummy pass in arch_bpf_trampoline_size() can vary from the actual size needed in arch_prepare_bpf_trampoline(). When the instructions accounted in arch_bpf_trampoline_size() is less than the number of instructions emitted during the actual JIT compile of the trampoline, the below warning is produced: WARNING: CPU: 8 PID: 204190 at arch/powerpc/net/bpf_jit_comp.c:981 __arch_prepare_bpf_trampoline.isra.0+0xd2c/0xdcc which is: /* Make sure the trampoline generation logic doesn't overflow */ if (image && WARN_ON_ONCE(&image[ctx->idx] > (u32 *)rw_image_end - BPF_INSN_SAFETY)) { So, during the dummy pass, instead of providing some arbitrary image location, account for maximum possible instructions if and when there is a dependency with image location for JIT'ing.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable trampoline JIT path is reached only through the bpf(2) syscall (BPF_LINK_CREATE/BPF_RAW_TRACEPOINT_OPEN → bpf_tracing_prog_attach → bpf_trampoline_update), which requires local access to the machine. No remote or adjacent-network input reaches arch_bpf_trampoline_size(). AC:L - The attacker deterministically triggers the size miscalculation by attaching fentry/fexit/fmod_ret programs; there is no race and no condition outside their control, and they can amplify the accounting drift by attaching many links (up to BPF_MAX_TRAMP_LINKS) and influencing JIT image placement by repeated attach/detach. PR:L - Attaching tracing programs needs CAP_BPF+CAP_PERFMON, which bpf_token_capable() evaluates against a BPF token's user namespace, so an unprivileged container user holding a delegated token — or a non-root tracing daemon with only these caps — can reach the code without being a real administrator. UI:N - The attaching process triggers the JIT compilation entirely on its own; no victim action, file open, or mount is needed. S:U - The miscomputed buffer and the resulting corruption are both within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The undersized JIT buffer permits writes past the end of the kvmalloc'd rw_image, and such heap corruption of adjacent slab objects (pointers, length fields) can be leveraged into arbitrary kernel-memory disclosure. I:H - EMIT()/PLANT_INSTR() writes are completely unchecked until after the fact, so instruction words — including attacker-chosen bpf_cookie immediates emitted via PPC_LI32 — are written out of bounds into the heap, an out-of-bounds write usable for control-flow-relevant corruption. A:H - The demonstrated effect is a WARN_ON_ONCE splat in __arch_prepare_bpf_trampoline() (panic under panic_on_warn) and, when the drift exceeds the 64-instruction safety margin, heap corruption that oopses the kernel.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | d243b62b7bd3d5314382d3b54e4992226245e936 to < 7833deb95e05bec146414b3a2feb24f025ca27c0 (affected · git)d243b62b7bd3d5314382d3b54e4992226245e936 to < 59ba025948be2a92e8bc9ae1cbdaf197660bd508 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.13 (affected)0 to < 6.13 (unaffected · semver)6.15.4 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
powerpc/bpf: fix JIT code size calculation of bpf trampoline
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 905ed56a8dcd29205eb175fe453c7e2b663b11e2b8ea66c9239b388e0a2c2584
- Ingested
- 23 Sep 2026, 08:46:47 UTC
- Source record
- Official CVE record