CVE-2026-45886
bpf: Fix bpf_xdp_store_bytes proto for read-only arg
Reported by linux · Published May 27, 2026
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix bpf_xdp_store_bytes proto for read-only arg While making some maps in Cilium read-only from the BPF side, we noticed that the bpf_xdp_store_bytes proto is incorrect. In particular, the verifier was throwing the following error: ; ret = ctx_store_bytes(ctx, l3_off + offsetof(struct iphdr, saddr), &nat->address, 4, 0); 635: (79) r1 = *(u64 *)(r10 -144) ; R1=ctx() R10=fp0 fp-144=ctx() 636: (b4) w2 = 26 ; R2=26 637: (b4) w4 = 4 ; R4=4 638: (b4) w5 = 0 ; R5=0 639: (85) call bpf_xdp_store_bytes#190 write into map forbidden, value_size=6 off=0 size=4 nat comes from a BPF_F_RDONLY_PROG map, so R3 is a PTR_TO_MAP_VALUE. The verifier checks the helper's memory access to R3 in check_mem_size_reg, as it reaches ARG_CONST_SIZE argument. The third argument has expected type ARG_PTR_TO_UNINIT_MEM, which includes the MEM_WRITE flag. The verifier thus checks for a BPF_WRITE access on R3. Given R3 points to a read-only map, the check fails. Conversely, ARG_PTR_TO_UNINIT_MEM can also lead to the helper reading from uninitialized memory. This patch simply fixes the expected argument type to match that of bpf_skb_store_bytes.
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.18-libbpf | Amazon Linux | 1:6.18.15-14.217.amzn2023 |
| kernel6.18-tools | Amazon Linux | 1:6.18.15-14.217.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 1:6.1.166-197.305.amzn2023 |
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel-livepatch-6.1.166-197.305 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.18 | Amazon Linux | 1:6.18.15-14.217.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 1:6.1.166-197.305.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.166-197.305.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.77-99.140.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.15-14.217.amzn2023 |
| python3-perf6.18 | Amazon Linux | 1:6.18.15-14.217.amzn2023 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 3f364222d032eea6b245780e845ad213dab28cdd, 3f364222d032eea6b245780e845ad213dab28cdd, 3f364222d032eea6b245780e845ad213dab28cdd |
| Linux | Linux | 5.18, 0, 6.1.165 |
| amazon:2023 | kernel6.18-libbpf | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.166-197.305 | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| linux | linux_kernel | 5.18, 5.18, 5.18 |
| amazon:2023 | kernel6.18-libbpf-static | 0 |
| amazon:2023 | kernel-livepatch-6.12.77-99.140 | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
…and 26 more
Timeline
- May 27, 2026 CVE Published
- May 28, 2026 EPSS Score (15 in total, the first dated here)
- May 29, 2026 Security Advisory (131 in total, the first dated here)
- Jun 4, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (128 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-45886
vulnetix vdb fixes CVE-2026-45886
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-2026-45886/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart