CVE-2026-98378
bpf: Skip unsettled links in link iterator
Reported by linux · Published October 9, 2026
In the Linux kernel, the following vulnerability has been resolved: bpf: Skip unsettled links in link iterator bpf_link_prime() inserts a link into link_idr before anon_inode_getfile() succeeds and before bpf_link_settle() publishes the ID in link->id. bpf_link_by_id() treats such an ID-zero link as unsettled, but the link iterator takes a reference without this check. If anon_inode_getfile() then fails, the creator removes the ID and frees its still-private link directly. The iterator is left with a dangling reference and its next bpf_link_put() accesses freed memory. Treat ID-zero entries as transient in bpf_link_get_curr_or_next(), just as bpf_link_by_id() does. BUG: KASAN: slab-use-after-free in bpf_link_put Write of size 8 by task exp/384 Call Trace: bpf_link_put kernel/bpf/syscall.c:3372 bpf_link_seq_next kernel/bpf/link_iter.c:33 bpf_seq_read kernel/bpf/bpf_iter.c:158 vfs_read fs/read_write.c:572 ksys_read fs/read_write.c:716 do_syscall_64 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe arch/x86/entry/entry_64.S:121 Kernel panic - not syncing: KASAN: panic_on_warn set ...
EPSS 0.12% · 1.7th 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 |
|---|---|---|
| kernel-livepatch-6.1.189-236.399 | Amazon Linux | 1:1.0-0.amzn2023 |
| perf6.18 | Amazon Linux | 1:6.18.56-125.164.amzn2023 |
| kernel-livepatch-6.18.56-125.164 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-headers | Amazon Linux | 1:6.1.189-236.399.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.189-236.399.amzn2023 |
| bpftool6.18 | Amazon Linux | 1:6.18.56-125.164.amzn2023 |
| kernel-livepatch-6.12.113-138.209 | Amazon Linux | 1:1.0-0.amzn2023 |
| microvm-kernel | Amazon Linux | 1:6.1.189-236.399.amzn2023 |
| kernel6.18-modules-extra | Amazon Linux | 1:6.18.56-125.164.amzn2023 |
| kernel6.18-tools-devel | Amazon Linux | 1:6.18.56-125.164.amzn2023 |
| perf | Amazon Linux | 1:6.1.189-236.399.amzn2023 |
| kernel | Amazon Linux | 1:6.1.189-236.399.amzn2023 |
5 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 9f88361273082825d9f0d13a543d49f9fa0d44a8, 9f88361273082825d9f0d13a543d49f9fa0d44a8, 9f88361273082825d9f0d13a543d49f9fa0d44a8 |
| Linux | Linux | 5.19, 0, 6.1.189 |
| amazon:2023 | kernel-livepatch-6.1.189-236.399 | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel-livepatch-6.18.56-125.164 | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel-livepatch-6.12.113-138.209 | 0 |
| amazon:2023 | microvm-kernel | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel6.18 | 0 |
| Linux | Linux | 7.3, 9f88361273082825d9f0d13a543d49f9fa0d44a8, 9f88361273082825d9f0d13a543d49f9fa0d44a8 |
| amazon:2023 | kernel6.18-devel | 0 |
…and 19 more
Timeline
- Oct 9, 2026 EPSS Score (4 in total, the first dated here)
- Oct 9, 2026 Coalition ESS Score
- Oct 9, 2026 CVE Published
- Oct 24, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-98378
vulnetix vdb fixes CVE-2026-98378
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-98378/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart