CVE-2026-98378
bpf: Skip unsettled links in link iterator
Check your servers for CVE-2026-98378
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98378 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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 ...
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.77% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 9f88361273082825d9f0d13a543d49f9fa0d44a8, before 68930f8d40ab4c10ca3b019f076136758fd100a8 affected from 9f88361273082825d9f0d13a543d49f9fa0d44a8, before c251ed48bd9063cf7de6049421e78b6de989060f affected from 9f88361273082825d9f0d13a543d49f9fa0d44a8, before 798a61edbc436cacdb659927d067368eeb1e30e2 affected from 9f88361273082825d9f0d13a543d49f9fa0d44a8, before 6e271f093d15d323f42de26f66556af53fa8e19f affected from 9f88361273082825d9f0d13a543d49f9fa0d44a8, before 87ce4b53b7436b50fc984f0a6afaf77f68ac5573 affected from 9f88361273082825d9f0d13a543d49f9fa0d44a8, before 50e80e2bb5e2be8515205b9c496b9640ddefa434
Other versions: unaffected
|
| Linux |
affected 5.19 unaffected before 5.19 unaffected from 6.1.189 up to and including 6.1.* unaffected from 6.6.158 up to and including 6.6.* unaffected from 6.12.112 up to and including 6.12.* unaffected from 6.18.55 up to and including 6.18.* unaffected from 7.2.9 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98378 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98378
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-98378
trivy image --scanners vuln IMAGE | grep CVE-2026-98378
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/68930f8d40ab4c10ca3b019f076136758fd100a8 git.kernel.org
- https://git.kernel.org/stable/c/c251ed48bd9063cf7de6049421e78b6de989060f git.kernel.org
- https://git.kernel.org/stable/c/798a61edbc436cacdb659927d067368eeb1e30e2 git.kernel.org
- https://git.kernel.org/stable/c/6e271f093d15d323f42de26f66556af53fa8e19f git.kernel.org
- https://git.kernel.org/stable/c/87ce4b53b7436b50fc984f0a6afaf77f68ac5573 git.kernel.org
- https://git.kernel.org/stable/c/50e80e2bb5e2be8515205b9c496b9640ddefa434 git.kernel.org
Source: the record CVE-2026-98378 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse