CVE-2025-38339
Last modified
CVE-2025-38339 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.13% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 6.13, < 6.15.4 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-38339?
How severe is CVE-2025-38339?
How do I fix CVE-2025-38339?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-38333In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38334In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38335In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38336In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38337In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38338In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-3834Zohocorp ManageEngine ADAudit Plus versions 8510 and prior a…8.1
- CVE-2025-38340In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-38341In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38342In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-38343In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38344In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-38339?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
