CVE-2026-98647
CVE-2026-98647 — bpf: Fix divide-by-zero in btf_struct_walk()
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix divide-by-zero in btf_struct_walk() When an access goes past the struct and the last member is a flexible array, btf_struct_walk() folds the offset back into a single element with (off - moff) % t->size, but never checks that the element type has a size. BTF takes an empty struct, so this in program BTF /* event could be empty */ struct event { #ifdef HAVE_TIMESTAMP __u64 ts; #endif }; struct batch { int nr; struct event events[]; }; divides by zero at prog load time. Getting there needs a PTR_TO_BTF_ID that is not MEM_ALLOC, e.g. a plain read of a local kptr stashed in a map from a sleepable program. Oops: divide error: 0000 [#1] SMP KASAN PTI RIP: 0010:btf_struct_walk+0x53f/0x1570 Call Trace: <TASK> btf_struct_access+0x42a/0xcd0 check_ptr_to_btf_access+0x4dc/0x1160 check_mem_access+0x3a45/0x8740 check_load_mem+0x36a/0xd10 do_check_common+0x3ef0/0xb210 bpf_check+0x6d3b/0x8580 bpf_prog_load+0xf7c/0x2720 __sys_bpf+0xa83/0x3690 __x64_sys_bpf+0xc7/0x150 x64_sys_call+0x1f3f/0x27e0 do_syscall_64+0xe5/0x610 entry_SYSCALL_64_after_hwframe+0x76/0x7e </TASK> Reject a zero-sized element type. The fixed array path in the same function already bails out on the same thing: btf_struct_walk() ... /* skip empty array */ if (moff == mtrue_end) continue; msize /= total_nelems;
Published Updated Sources: NVD, Linux (CNA), GitHub, SOCRadar CTI
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
0%
ahead of 0% of scored CVEs
CVSS base
Unscored
no source published a base score
Remediation
The vendor's own words where we have them.
Upgrade Linux to a fixed release (0 to < 5.8). Apply vendor patches per advisory and restrict external exposure of the affected component until patched.
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Prioritize based on EPSS, PoC availability, and external exposure.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Linux | Linux | 9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 1ea3820937f8022e044c41c6e95c84b02741b45f | Vulnerable |
| Linux | Linux | 9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 172756f02663ad45c889c001c1a8cb4082a01a05 | Vulnerable |
| Linux | Linux | 9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 934e9ba9f8d05656a48624710be67ca4dc8482e6 | Vulnerable |
| Linux | Linux | 9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 63af086cb5fa6f72fd924f86bea4c2194da663a2 | Vulnerable |
| Linux | Linux | 9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 8eb4cd72daad3a9ee63d2281bbdd16ce6d9406b1 | Vulnerable |
| Linux | Linux | 9c5f8a1008a121e4c6b24af211034e24b0b63081 | Vulnerable |
| Linux | Linux | 9c5f8a1008a121e4c6b24af211034e24b0b63081 | Vulnerable |
| Linux | Linux | 5.8 | Vulnerable |
| Linux | Linux | 0 to < 5.8 | Patched |
| Linux | Linux | 5.15.222 to <= 5.15.* | Patched |
| Linux | Linux | 6.1.189 to <= 6.1.* | Patched |
| Linux | Linux | 6.6.158 to <= 6.6.* | Patched |
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /*, /0x1570, /0xcd0, /0x1160, /0x8740, /0xd10, /0xb210, /0x8580, /0x2720, /0x3690, /0x150, /0x27e0, /0x610, /0x7e, /TASK, /=.
Timeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Initial · CVE published
Oct 18, 2026 · NVD
CVE published by MITRE.
Oct 18, 2026 · SOCRadar CTI
References
7 on the record
- git.kernel.org/stable/c/172756f02663ad45c889c001c1a8cb4082a01a05
Vendor Advisory, NIST
- git.kernel.org/stable/c/1ea3820937f8022e044c41c6e95c84b02741b45f
Vendor Advisory, NIST
- git.kernel.org/stable/c/63af086cb5fa6f72fd924f86bea4c2194da663a2
Vendor Advisory, NIST
- git.kernel.org/stable/c/8eb4cd72daad3a9ee63d2281bbdd16ce6d9406b1
Vendor Advisory, NIST
- git.kernel.org/stable/c/934e9ba9f8d05656a48624710be67ca4dc8482e6
Vendor Advisory, NIST
- git.kernel.org/stable/c/b0b3dc66529676228cb938cbcad66920f735c223
Vendor Advisory, NIST
- git.kernel.org/stable/c/b8fa56722e9c43bcd59c51fe4c7edd5f4158a11b
Vendor Advisory, NIST
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-39682 tls: fix handling of zero-length records on the rx_listCVSS 9.8 · CISA KEV
- CVE-2016-3427 Oracle Java SE and JRockit Unspecified VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-53266 netfilter: bridge: make ebt_snat ARP rewrite writableCVSS 8.8 · CISA KEV
- CVE-2026-46300 net: skbuff: preserve shared-frag marker during coalescingCVSS 7.8 · CISA KEV
- CVE-2026-31431 crypto: algif_aead - Revert to operating out-of-placeCVSS 7.8 · CISA KEV
- CVE-2014-3153 Linux Kernel Privilege Escalation VulnerabilityCVSS 7.8 · CISA KEV
Elsewhere on this site
- Linuxevery CVE for this vendor
- Unclassifiedsame class
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2026-98647 is bpf: Fix divide-by-zero in btf_struct_walk(), a unscored vulnerability affecting Linux from Linux. The current evidence does not list it in CISA KEV, and the exploit status is: Active exploitation is not confirmed from current sources for CVE-2026-98647. Public exploit evidence is: A public PoC is not confirmed from current sources for CVE-2026-98647. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS null describes technical severity, while EPSS 0% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.