# CVE-2026-45886: bpf: Fix bpf\_xdp\_store\_bytes proto for read-only arg

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2026-05-27T12:16:58.000Z
- **Modified:** 2026-11-06T16:18:49.283Z

## Who should check

- Anyone running Linux \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< ffb5d1c5e3933b947fc7303ad68bf0c536d0c85e; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< ddc34a1b85505c919026ddc82fafdada9a160b15; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< 0db169a91381a473b7974021d1c02f8da72c5775; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< d7b87adeb0eb539b9b824b101bb14fb01e41240b; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< 57f7f6a0ad04a65c8a7a067b2f56cbbf2aec9e52; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< 6557f1565d779851c4db9c488c49c05a47a6e72f
- Anyone running Linux 5.18

## Description

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.

## Affected and fixed versions

- Linux: \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< ffb5d1c5e3933b947fc7303ad68bf0c536d0c85e; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< ddc34a1b85505c919026ddc82fafdada9a160b15; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< 0db169a91381a473b7974021d1c02f8da72c5775; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< d7b87adeb0eb539b9b824b101bb14fb01e41240b; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< 57f7f6a0ad04a65c8a7a067b2f56cbbf2aec9e52; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< 6557f1565d779851c4db9c488c49c05a47a6e72f (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 6557f1565d779851c4db9c488c49c05a47a6e72f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-45886. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-45886.md
Affected: Linux >= 3f364222d032eea6b245780e845ad213dab28cdd, < ffb5d1c5e3933b947fc7303ad68bf0c536d0c85e; >= 3f364222d032eea6b245780e845ad213dab28cdd, < ddc34a1b85505c919026ddc82fafdada9a160b15; >= 3f364222d032eea6b245780e845ad213dab28cdd, < 0db169a91381a473b7974021d1c02f8da72c5775; >= 3f364222d032eea6b245780…
Fixed in: Linux 0db169a91381a473b7974021d1c02f8da72c5775, Linux 57f7f6a0ad04a65c8a7a067b2f56cbbf2aec9e52, Linux 6557f1565d779851c4db9c488c49c05a47a6e72f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-45886 being exploited?

There is no confirmed exploitation: CVE-2026-45886 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-45886?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-45886?

Linux \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< ffb5d1c5e3933b947fc7303ad68bf0c536d0c85e; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< ddc34a1b85505c919026ddc82fafdada9a160b15; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< 0db169a91381a473b7974021d1c02f8da72c5775; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< d7b87adeb0eb539b9b824b101bb14fb01e41240b; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< 57f7f6a0ad04a65c8a7a067b2f56cbbf2aec9e52; \>= 3f364222d032eea6b245780e845ad213dab28cdd, \< 6557f1565d779851c4db9c488c49c05a47a6e72f; Linux 5.18.

### Is there a fix for CVE-2026-45886?

Yes. Fixed in Linux 0db169a91381a473b7974021d1c02f8da72c5775, Linux 57f7f6a0ad04a65c8a7a067b2f56cbbf2aec9e52, Linux 6557f1565d779851c4db9c488c49c05a47a6e72f. Upgrade Linux to 6557f1565d779851c4db9c488c49c05a47a6e72f or later.

### How do I check if I'm affected by CVE-2026-45886?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ffb5d1c5e3933b947fc7303ad68bf0c536d0c85e>
- patch: <https://git.kernel.org/stable/c/ddc34a1b85505c919026ddc82fafdada9a160b15>
- patch: <https://git.kernel.org/stable/c/0db169a91381a473b7974021d1c02f8da72c5775>
- patch: <https://git.kernel.org/stable/c/d7b87adeb0eb539b9b824b101bb14fb01e41240b>
- patch: <https://git.kernel.org/stable/c/57f7f6a0ad04a65c8a7a067b2f56cbbf2aec9e52>
- patch: <https://git.kernel.org/stable/c/6557f1565d779851c4db9c488c49c05a47a6e72f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-45886>

HTML: <https://flawdb.com/CVE-2026-45886> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-45886>
