CVE-2026-98647
publishedbpf: Fix divide-by-zero in btf_struct_walk()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 1ea3820937f8022e044c41c6e95c84b02741b45f · 9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 172756f02663ad45c889c001c1a8cb4082a01a05 · 9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 934e9ba9f8d05656a48624710be67ca4dc8482e6 · 9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 63af086cb5fa6f72fd924f86bea4c2194da663a2 · 9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 8eb4cd72daad3a9ee63d2281bbdd16ce6d9406b1 · 9c5f8a1008a121e4c6b24af211034e24b0b63081 to < b8fa56722e9c43bcd59c51fe4c7edd5f4158a11b · 9c5f8a1008a121e4c6b24af211034e24b0b63081 to < b0b3dc66529676228cb938cbcad66920f735c223 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.8 (affected) · 0 to < 5.8 (unaffected · semver) · 5.15.222 through 5.15.* (unaffected · semver) · 6.1.189 through 6.1.* (unaffected · semver) · 6.6.158 through 6.6.* (unaffected · semver) · 6.12.112 through 6.12.* (unaffected · semver) · 6.18.55 through 6.18.* (unaffected · semver) · 7.2.9 through 7.2.* (unaffected · semver) · 7.3 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2026-119 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3251 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3335 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.113-1~deb12u1 | DLA-4850-1 |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3336 | Fixed | Not stated | Amazon Linux assessment |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-docaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modules-usbx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-toolsaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek-toolsx86_64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek64kaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek64k-coreaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek64k-develaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek64k-modulesaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek64k-modules-coreaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek64k-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek64k-modules-desktopaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek64k-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek64k-modules-usbaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 10 | kernel-uek64k-modules-wirelessaarch64 | Advisory build | 0:6.12.0-208.112.5.el10uek | ELSA-2026-500572 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uekaarch64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uekx86_64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 8 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-326.222.4.el8uek | ELSA-2026-500574 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:5.15.0-326.222.4.el9uek | ELSA-2026-500574 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:5.15.0-326.222.4.el9uek | ELSA-2026-500574 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:5.15.0-326.222.4.el9uek | ELSA-2026-500574 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:6.12.0-208.112.5.el9uek | ELSA-2026-500572 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:5.15.0-326.222.4.el9uek | ELSA-2026-500574 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:6.12.0-208.112.5.el9uek | ELSA-2026-500572 |
| Oracle Linux | 9 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-326.222.4.el9uek | ELSA-2026-500574 |
| Oracle Linux | 9 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-326.222.4.el9uek | ELSA-2026-500574 |
| Oracle Linux | 9 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-326.222.4.el9uek | ELSA-2026-500574 |
| Oracle Linux | 9 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-326.222.4.el9uek | ELSA-2026-500574 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-326.222.4.el9uek | ELSA-2026-500574 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-208.112.5.el9uek | ELSA-2026-500572 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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;
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 1ea3820937f8022e044c41c6e95c84b02741b45f (affected · git)9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 172756f02663ad45c889c001c1a8cb4082a01a05 (affected · git)9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 934e9ba9f8d05656a48624710be67ca4dc8482e6 (affected · git)9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 63af086cb5fa6f72fd924f86bea4c2194da663a2 (affected · git)9c5f8a1008a121e4c6b24af211034e24b0b63081 to < 8eb4cd72daad3a9ee63d2281bbdd16ce6d9406b1 (affected · git)9c5f8a1008a121e4c6b24af211034e24b0b63081 to < b8fa56722e9c43bcd59c51fe4c7edd5f4158a11b (affected · git)9c5f8a1008a121e4c6b24af211034e24b0b63081 to < b0b3dc66529676228cb938cbcad66920f735c223 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.8 (affected)0 to < 5.8 (unaffected · semver)5.15.222 through 5.15.* (unaffected · semver)6.1.189 through 6.1.* (unaffected · semver)6.6.158 through 6.6.* (unaffected · semver)6.12.112 through 6.12.* (unaffected · semver)6.18.55 through 6.18.* (unaffected · semver)7.2.9 through 7.2.* (unaffected · semver)7.3 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
7- https://git.kernel.org/stable/c/172756f02663ad45c889c001c1a8cb4082a01a05
- https://git.kernel.org/stable/c/1ea3820937f8022e044c41c6e95c84b02741b45f
- https://git.kernel.org/stable/c/63af086cb5fa6f72fd924f86bea4c2194da663a2
- https://git.kernel.org/stable/c/8eb4cd72daad3a9ee63d2281bbdd16ce6d9406b1
- https://git.kernel.org/stable/c/934e9ba9f8d05656a48624710be67ca4dc8482e6
- https://git.kernel.org/stable/c/b0b3dc66529676228cb938cbcad66920f735c223
- https://git.kernel.org/stable/c/b8fa56722e9c43bcd59c51fe4c7edd5f4158a11b
Provider assertions
1Linux · cna
bpf: Fix divide-by-zero in btf_struct_walk()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 35683c633680e499b8d03a7f7b58abe2f32fda3f4f93736e41b122fe54d91dc9
- Ingested
- 19 Oct 2026, 09:36:29 UTC
- Source record
- Official CVE record