VDB

CVE-2025-38280

CVE-2025-38280 PUBLISHED

bpf: Avoid __bpf_prog_ret0_warn when jit fails

Reported by linux · Published July 10, 2025

In the Linux kernel, the following vulnerability has been resolved: bpf: Avoid __bpf_prog_ret0_warn when jit fails syzkaller reported an issue: WARNING: CPU: 3 PID: 217 at kernel/bpf/core.c:2357 __bpf_prog_ret0_warn+0xa/0x20 kernel/bpf/core.c:2357 Modules linked in: CPU: 3 UID: 0 PID: 217 Comm: kworker/u32:6 Not tainted 6.15.0-rc4-syzkaller-00040-g8bac8898fe39 RIP: 0010:__bpf_prog_ret0_warn+0xa/0x20 kernel/bpf/core.c:2357 Call Trace: <TASK> bpf_dispatcher_nop_func include/linux/bpf.h:1316 [inline] __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run include/linux/filter.h:725 [inline] cls_bpf_classify+0x74a/0x1110 net/sched/cls_bpf.c:105 ... When creating bpf program, 'fp->jit_requested' depends on bpf_jit_enable. This issue is triggered because of CONFIG_BPF_JIT_ALWAYS_ON is not set and bpf_jit_enable is set to 1, causing the arch to attempt JIT the prog, but jit failed due to FAULT_INJECTION. As a result, incorrectly treats the program as valid, when the program runs it calls `__bpf_prog_ret0_warn` and triggers the WARN_ON_ONCE(1).

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-libbpfAmazon Linux6.12.35-55.103.amzn2023
perf6.12Amazon Linux6.12.35-55.103.amzn2023
kernel-livepatch-6.12.35-55.103Amazon Linux1.0-0.amzn2023
kernel-modules-extra-commonAmazon Linux6.12.35-55.103.amzn2023
kernel-modules-extraAmazon Linux1:6.1.144-170.251.amzn2023
kernel-livepatch-6.1.144-170.251Amazon Linux1:1.0-0.amzn2023
perfAmazon Linux1:6.1.144-170.251.amzn2023
bpftoolAmazon Linux6.12.35-55.103.amzn2023
kernel-toolsAmazon Linux6.12.35-55.103.amzn2023
kernel6.12-modules-extraAmazon Linux6.12.35-55.103.amzn2023
kernel-headersAmazon Linux6.12.35-55.103.amzn2023
kernelAmazon Linux1:6.1.144-170.251.amzn2023

4 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
LinuxLinuxfa9dd599b4dae841924b022768354cfde9affecb, fa9dd599b4dae841924b022768354cfde9affecb, fa9dd599b4dae841924b022768354cfde9affecb
LinuxLinux4.16, 0, 5.15.186
amazon:2023kernel-libbpf0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.5
amazon:2023perf6.120
amazon:2023kernel-livepatch-6.12.35-55.1030
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-modules-extra0
amazon:2023kernel-livepatch-6.1.144-170.2510
amazon:2023perf0
amazon:2023bpftool0
amazon:2023kernel-tools0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-headers0
amazon:2023kernel0
amazon:2023kernel-tools-devel0
amazon:2023kernel6.120
amazon:2023python3-perf0
linuxlinux_kernel4.16, 4.16, 4.16
amazon:2023kernel-libbpf-static0

…and 7 more

Timeline

  • Jul 9, 2025 CVE Published
  • Jul 10, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 11, 2025 PoC Published (17 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (138 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (144 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score
  • Oct 7, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38280
vulnetix vdb fixes CVE-2025-38280

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-38280/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›