{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-98378","id":"CVE-2026-98378","title":"bpf: Skip unsettled links in link iterator","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Skip unsettled links in link iterator\n\nbpf_link_prime() inserts a link into link_idr before anon_inode_getfile()\nsucceeds and before bpf_link_settle() publishes the ID in link->id.\nbpf_link_by_id() treats such an ID-zero link as unsettled, but the link\niterator takes a reference without this check.\n\nIf anon_inode_getfile() t","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Skip unsettled links in link iterator\n\nbpf_link_prime() inserts a link into link_idr before anon_inode_getfile()\nsucceeds and before bpf_link_settle() publishes the ID in link->id.\nbpf_link_by_id() treats such an ID-zero link as unsettled, but the link\niterator takes a reference without this check.\n\nIf anon_inode_getfile() then fails, the creator removes the ID and frees\nits still-private link directly.  The iterator is left with a dangling\nreference and its next bpf_link_put() accesses freed memory.\n\nTreat ID-zero entries as transient in bpf_link_get_curr_or_next(), just as\nbpf_link_by_id() does.\n\n  BUG: KASAN: slab-use-after-free in bpf_link_put\n  Write of size 8 by task exp/384\n  Call Trace:\n  bpf_link_put                    kernel/bpf/syscall.c:3372\n  bpf_link_seq_next               kernel/bpf/link_iter.c:33\n  bpf_seq_read                    kernel/bpf/bpf_iter.c:158\n  vfs_read                        fs/read_write.c:572\n  ksys_read                       fs/read_write.c:716\n  do_syscall_64                   arch/x86/entry/syscall_64.c:84\n  entry_SYSCALL_64_after_hwframe  arch/x86/entry/entry_64.S:121\n  Kernel panic - not syncing: KASAN: panic_on_warn set ...","published":"2026-10-09T07:34:18.626Z","updated":"2026-10-28T02:30:50.180088477Z","reserved":"2026-09-25T10:25:14.345Z","status":"Received","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9f88361273082825d9f0d13a543d49f9fa0d44a8","lessThan":"68930f8d40ab4c10ca3b019f076136758fd100a8","status":"affected","versionType":"git"},{"version":"9f88361273082825d9f0d13a543d49f9fa0d44a8","lessThan":"c251ed48bd9063cf7de6049421e78b6de989060f","status":"affected","versionType":"git"},{"version":"9f88361273082825d9f0d13a543d49f9fa0d44a8","lessThan":"798a61edbc436cacdb659927d067368eeb1e30e2","status":"affected","versionType":"git"},{"version":"9f88361273082825d9f0d13a543d49f9fa0d44a8","lessThan":"6e271f093d15d323f42de26f66556af53fa8e19f","status":"affected","versionType":"git"},{"version":"9f88361273082825d9f0d13a543d49f9fa0d44a8","lessThan":"87ce4b53b7436b50fc984f0a6afaf77f68ac5573","status":"affected","versionType":"git"},{"version":"9f88361273082825d9f0d13a543d49f9fa0d44a8","lessThan":"50e80e2bb5e2be8515205b9c496b9640ddefa434","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","lessThan":"5.19","status":"unaffected","versionType":"semver"},{"version":"6.1.189","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.158","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.112","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.55","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.9","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/68930f8d40ab4c10ca3b019f076136758fd100a8","tags":["web"]},{"url":"https://git.kernel.org/stable/c/c251ed48bd9063cf7de6049421e78b6de989060f","tags":["web"]},{"url":"https://git.kernel.org/stable/c/798a61edbc436cacdb659927d067368eeb1e30e2","tags":["web"]},{"url":"https://git.kernel.org/stable/c/6e271f093d15d323f42de26f66556af53fa8e19f","tags":["web"]},{"url":"https://git.kernel.org/stable/c/87ce4b53b7436b50fc984f0a6afaf77f68ac5573","tags":["web"]},{"url":"https://git.kernel.org/stable/c/50e80e2bb5e2be8515205b9c496b9640ddefa434","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98378.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98378","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00117,"epssPercentile":0.01715,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-98378","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98378","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-98378","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-98378","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}