CVE-2025-40169
bpf: Reject negative offsets for ALU ops
Reported by linux · Published November 12, 2025
In the Linux kernel, the following vulnerability has been resolved: bpf: Reject negative offsets for ALU ops When verifying BPF programs, the check_alu_op() function validates instructions with ALU operations. The 'offset' field in these instructions is a signed 16-bit integer. The existing check 'insn->off > 1' was intended to ensure the offset is either 0, or 1 for BPF_MOD/BPF_DIV. However, because 'insn->off' is signed, this check incorrectly accepts all negative values (e.g., -1). This commit tightens the validation by changing the condition to '(insn->off != 0 && insn->off != 1)'. This ensures that any value other than the explicitly permitted 0 and 1 is rejected, hardening the verifier against malformed BPF 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-libbpf-static | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| kernel-livepatch-6.12.53-69.119 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| kernel6.12-libbpf | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| Linux | Linux | 6.6, 55c0ced59fe17dee34e9dfd5f7be63cbab207758, 5017c302ca4b2a45149ad64e058fa2d5623c068f, 3bce44b344040e5eef3d64d38b157c15304c0aab, 21167bf70dbe400563e189ac632258d35eda38b5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | ec0e2da95f72d4a46050a4d994e4fe471474fd80, ec0e2da95f72d4a46050a4d994e4fe471474fd80, ec0e2da95f72d4a46050a4d994e4fe471474fd80 |
| Linux | Linux | 6.6, 0, 6.6.112 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.12.53-69.119 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| Linux | Linux | 6.6.112, 6.17.3, 6.18 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| linux | linux_kernel | 6.6, 6.6, 6.6 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
Timeline
- Oct 27, 2025 CVE Published
- Nov 12, 2025 EPSS Score (30 in total, the first dated here)
- Nov 17, 2025 CVE Updated
- Mar 29, 2026 Distribution Patch (187 in total, the first dated here)
- Mar 29, 2026 Security Advisory (193 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-40169
vulnetix vdb fixes CVE-2025-40169
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-40169/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart