VDB

CVE-2026-45886

CVE-2026-45886 PUBLISHED

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.

PackageEcosystemFixed in
kernel6.18-libbpfAmazon Linux1:6.18.15-14.217.amzn2023
kernel6.18-toolsAmazon Linux1:6.18.15-14.217.amzn2023
kernel-libbpf-staticAmazon Linux1:6.1.166-197.305.amzn2023
kernel6.12-libbpf-develAmazon Linux1:6.12.77-99.140.amzn2023
kernel-livepatch-6.1.166-197.305Amazon Linux1:1.0-0.amzn2023
kernel6.18Amazon Linux1:6.18.15-14.217.amzn2023
python3-perf6.12Amazon Linux1:6.12.77-99.140.amzn2023
kernel-libbpf-develAmazon Linux1:6.1.166-197.305.amzn2023
python3-perfAmazon Linux1:6.1.166-197.305.amzn2023
kernel6.12Amazon Linux1:6.12.77-99.140.amzn2023
kernel6.18-develAmazon Linux1:6.18.15-14.217.amzn2023
python3-perf6.18Amazon Linux1:6.18.15-14.217.amzn2023

Affected products

VendorProductVersions
LinuxLinux3f364222d032eea6b245780e845ad213dab28cdd, 3f364222d032eea6b245780e845ad213dab28cdd, 3f364222d032eea6b245780e845ad213dab28cdd
LinuxLinux5.18, 0, 6.1.165
amazon:2023kernel6.18-libbpf0
amazon:2023kernel6.18-tools0
amazon:2023kernel-libbpf-static0
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel-livepatch-6.1.166-197.3050
amazon:2023kernel6.180
amazon:2023python3-perf6.120
amazon:2023kernel-libbpf-devel0
amazon:2023python3-perf0
amazon:2023kernel6.120
amazon:2023kernel6.18-devel0
amazon:2023python3-perf6.180
linuxlinux_kernel5.18, 5.18, 5.18
amazon:2023kernel6.18-libbpf-static0
amazon:2023kernel-livepatch-6.12.77-99.1400
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-modules-extra-common0

…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

References

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