# CVE-2026-98378: bpf: Skip unsettled links in link iterator

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.17% (percentile 4, 2026-11-26)
- **Published:** 2026-10-09T07:34:18.626Z
- **Modified:** 2026-10-24T14:16:39.873Z

## Who should check

- Anyone running Linux \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 68930f8d40ab4c10ca3b019f076136758fd100a8; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< c251ed48bd9063cf7de6049421e78b6de989060f; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 798a61edbc436cacdb659927d067368eeb1e30e2; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 6e271f093d15d323f42de26f66556af53fa8e19f; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 87ce4b53b7436b50fc984f0a6afaf77f68ac5573; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 50e80e2bb5e2be8515205b9c496b9640ddefa434
- Anyone running Linux 5.19

## 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 ...

## Affected and fixed versions

- Linux: \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 68930f8d40ab4c10ca3b019f076136758fd100a8; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< c251ed48bd9063cf7de6049421e78b6de989060f; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 798a61edbc436cacdb659927d067368eeb1e30e2; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 6e271f093d15d323f42de26f66556af53fa8e19f; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 87ce4b53b7436b50fc984f0a6afaf77f68ac5573; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 50e80e2bb5e2be8515205b9c496b9640ddefa434 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 50e80e2bb5e2be8515205b9c496b9640ddefa434 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-98378. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98378.md
Affected: Linux >= 9f88361273082825d9f0d13a543d49f9fa0d44a8, < 68930f8d40ab4c10ca3b019f076136758fd100a8; >= 9f88361273082825d9f0d13a543d49f9fa0d44a8, < c251ed48bd9063cf7de6049421e78b6de989060f; >= 9f88361273082825d9f0d13a543d49f9fa0d44a8, < 798a61edbc436cacdb659927d067368eeb1e30e2; >= 9f88361273082825d9f0d13…
Fixed in: Linux 68930f8d40ab4c10ca3b019f076136758fd100a8, Linux 798a61edbc436cacdb659927d067368eeb1e30e2, Linux 6e271f093d15d323f42de26f66556af53fa8e19f, Linux 87ce4b53b7436b50fc984f0a6afaf77f68ac5573, Linux 50e80e2bb5e2be8515205b9c496b9640ddefa434

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-98378 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 68930f8d40ab4c10ca3b019f076136758fd100a8; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< c251ed48bd9063cf7de6049421e78b6de989060f; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 798a61edbc436cacdb659927d067368eeb1e30e2; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 6e271f093d15d323f42de26f66556af53fa8e19f; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 87ce4b53b7436b50fc984f0a6afaf77f68ac5573; \>= 9f88361273082825d9f0d13a543d49f9fa0d44a8, \< 50e80e2bb5e2be8515205b9c496b9640ddefa434; Linux 5.19.

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

Yes. Fixed in Linux 68930f8d40ab4c10ca3b019f076136758fd100a8, Linux 798a61edbc436cacdb659927d067368eeb1e30e2, Linux 6e271f093d15d323f42de26f66556af53fa8e19f, Linux 87ce4b53b7436b50fc984f0a6afaf77f68ac5573, Linux 50e80e2bb5e2be8515205b9c496b9640ddefa434. Upgrade Linux to 50e80e2bb5e2be8515205b9c496b9640ddefa434 or later.

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

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

- other: <https://git.kernel.org/stable/c/68930f8d40ab4c10ca3b019f076136758fd100a8>
- other: <https://git.kernel.org/stable/c/c251ed48bd9063cf7de6049421e78b6de989060f>
- other: <https://git.kernel.org/stable/c/798a61edbc436cacdb659927d067368eeb1e30e2>
- other: <https://git.kernel.org/stable/c/6e271f093d15d323f42de26f66556af53fa8e19f>
- other: <https://git.kernel.org/stable/c/87ce4b53b7436b50fc984f0a6afaf77f68ac5573>
- other: <https://git.kernel.org/stable/c/50e80e2bb5e2be8515205b9c496b9640ddefa434>

## 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-98378>

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