CVE-2026-98626
bpf: Restrict CO-RE poisoning to relocatable instructions
Reported by linux · Published October 18, 2026
In the Linux kernel, the following vulnerability has been resolved: bpf: Restrict CO-RE poisoning to relocatable instructions CO-RE relocation records can name any instruction offset. When a relocation cannot be resolved, bpf_core_patch_insn() currently poisons its target before checking whether that instruction is a valid relocation target. Malformed metadata can therefore replace jumps, calls, exits, register-source arithmetic, or non-immediate loads instead of failing at the relocation step. Handle poisoning only after the instruction has passed the same class and operand-form checks used for a resolved relocation. Route invalid forms through the existing diagnostic and return a hard error. Keep poisoning supported instructions, including both halves of a plain ldimm64, so an unresolved relocation in dead code remains valid. Extend bpf_core_poison_insn() to poison both halves of ldimm64, and return its status directly from each validated instruction case. This avoids routing the success path through a common label and leaves the helper free to report errors. The shared relocation code applies this restriction to both libbpf and in-kernel CO-RE.
EPSS 0.21% · 11.5th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf | Amazon Linux | 1:6.1.189-236.399.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | d7a252708dbc950ca2064310217e8b9f85846e2f, d7a252708dbc950ca2064310217e8b9f85846e2f, d7a252708dbc950ca2064310217e8b9f85846e2f |
| Linux | Linux | 5.6, 0, 5.15.222 |
| amazon:2023 | perf | 0 |
| linux | linux_kernel | 5.6, 5.6, 5.6 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | microvm-kernel | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel-livepatch-6.18.56-125.164 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| Linux | Linux | *, 7.2.9, 6.18.55 |
…and 19 more
Timeline
- Oct 18, 2026 Coalition ESS Score
- Oct 18, 2026 CVE Published
- Oct 19, 2026 EPSS Score (5 in total, the first dated here)
- Oct 19, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-98626
vulnetix vdb fixes CVE-2026-98626
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-98626/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart