Integer overflow in Linux kernel - CVE-2025-38339

 

Integer overflow in Linux kernel - CVE-2025-38339

Published: July 11, 2025


Vulnerability identifier: #VU112820
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-38339
CWE-ID: CWE-190
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to execute arbitrary code.

The vulnerability exists due to integer overflow within the bpf_jit_emit_func_call_rel() and bpf_jit_build_body() functions in arch/powerpc/net/bpf_jit_comp64.c, within the bpf_jit_build_body() function in arch/powerpc/net/bpf_jit_comp32.c, within the invoke_bpf_prog(), __arch_prepare_bpf_trampoline() and arch_bpf_trampoline_size() functions in arch/powerpc/net/bpf_jit_comp.c. A local user can execute arbitrary code.


Affected software

Linux kernel
Ubuntu
linux (Ubuntu package)
linux-hwe-6.14 (Ubuntu package)
linux-azure (Ubuntu package)
linux-realtime-6.14 (Ubuntu package)
linux-aws-6.14 (Ubuntu package)
linux-gcp-6.14 (Ubuntu package)

How to mitigate CVE-2025-38339

Install update from vendor's repository.

linux (Ubuntu package) - addressed in versions 6.14.0-34.34, 6.14.0-1014.14~24.04.1, 6.14.0-1015.15, 6.14.0-1015.15~24.04.1, 6.14.0-1016.16, 6.14.0-1018.19
linux-hwe-6.14 (Ubuntu package) - update to 6.14.0-34.34~24.04.1
linux-azure (Ubuntu package) - addressed in versions 6.14.0-1007.7+25.10.1, 6.14.0-1014.14, 6.14.0-1014.14~24.04.1
linux-realtime-6.14 (Ubuntu package) - update to 6.14.0-1014.14~24.04.1
linux-aws-6.14 (Ubuntu package) - update to 6.14.0-1015.15~24.04.1
linux-gcp-6.14 (Ubuntu package) - update to 6.14.0-1018.19~24.04.1

External References

Related Security Bulletins