CVE-2022-49985
published high CVSS 3.1 · 7.8bpf: Don't use tnum_range on array range checking for poke descriptors
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd2e4c1e6c2947269346054ac8937ccfe9e0bcc6b to < e8979807178434db8ceaa84dfcd44363e71e50bb · d2e4c1e6c2947269346054ac8937ccfe9e0bcc6b to < 4f672112f8665102a5842c170be1713f8ff95919 · d2e4c1e6c2947269346054ac8937ccfe9e0bcc6b to < a36df92c7ff7ecde2fb362241d0ab024dddd0597 · d2e4c1e6c2947269346054ac8937ccfe9e0bcc6b to < a657182a5c5150cdfacb6640aad1d2712571a409 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.5 (affected) · 0 to < 5.5 (unaffected · semver) · 5.10.140 through 5.10.* (unaffected · semver) · 5.15.64 through 5.15.* (unaffected · semver) · 5.19.6 through 5.19.* (unaffected · semver) · 6.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2022-020 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2022-008 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-8 | bpftoolaarch64 | Advisory build | 4.18.0-372.164.1.el8_6 | RHSA-2025:18043 |
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.74.1.rt7.415.el8_10 | ALSA-2025:15472 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.74.1.rt7.415.el8_10 | ALSA-2025:15472 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.74.1.rt7.415.el8_10 | ALSA-2025:15472 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.74.1.rt7.415.el8_10 | ALSA-2025:15472 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.74.1.rt7.415.el8_10 | ALSA-2025:15472 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.74.1.rt7.415.el8_10 | ALSA-2025:15472 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.74.1.rt7.415.el8_10 | ALSA-2025:15472 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.74.1.rt7.415.el8_10 | ALSA-2025:15472 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.74.1.rt7.415.el8_10 | ALSA-2025:15472 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.74.1.rt7.415.el8_10 | ALSA-2025:15472 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.74.1.el8_10 | ALSA-2025:15471 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernelx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-abi-stablelistsx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-corex86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-cross-headersaarch64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-cross-headersx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-debugx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-debug-corex86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-debug-develx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-debug-modulesx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-debug-modules-extrax86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-develx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-docx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-headersaarch64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-headersx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-modulesx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-modules-extrax86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-toolsaarch64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-toolsx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-tools-libsaarch64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-tools-libsx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-tools-libs-develaarch64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | kernel-tools-libs-develx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | perfaarch64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | perfx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | python3-perfaarch64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Oracle Linux | 8 | python3-perfx86_64 | Advisory build | 0:4.18.0-553.74.1.el8_10 | ELSA-2025-15471 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolaarch64 | Advisory build | 4.18.0-553.74.1.el8_10 | RHSA-2025:15471 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolppc64le | Advisory build | 4.18.0-372.164.1.el8_6 | RHSA-2025:18043 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolppc64le | Advisory build | 4.18.0-477.114.1.el8_8 | RHSA-2025:17570 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolppc64le | Advisory build | 4.18.0-553.74.1.el8_10 | RHSA-2025:15471 |
| Red Hat Enterprise Linux | RHEL-8 | bpftools390x | Advisory build | 4.18.0-372.164.1.el8_6 | RHSA-2025:18043 |
| Red Hat Enterprise Linux | RHEL-8 | bpftools390x | Advisory build | 4.18.0-553.74.1.el8_10 | RHSA-2025:15471 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolx86_64 | Advisory build | 4.18.0-305.179.1.el8_4 | RHSA-2025:22752 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolx86_64 | Advisory build | 4.18.0-372.164.1.el8_6 | RHSA-2025:18043 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolx86_64 | Advisory build | 4.18.0-477.114.1.el8_8 | RHSA-2025:17570 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolx86_64 | Advisory build | 4.18.0-553.74.1.el8_10 | RHSA-2025:15471 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoaarch64 | Advisory build | 4.18.0-372.164.1.el8_6 | RHSA-2025:18043 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoaarch64 | Advisory build | 4.18.0-553.74.1.el8_10 | RHSA-2025:15471 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoppc64le | Advisory build | 4.18.0-372.164.1.el8_6 | RHSA-2025:18043 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoppc64le | Advisory build | 4.18.0-477.114.1.el8_8 | RHSA-2025:17570 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoppc64le | Advisory build | 4.18.0-553.74.1.el8_10 | RHSA-2025:15471 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfos390x | Advisory build | 4.18.0-372.164.1.el8_6 | RHSA-2025:18043 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfos390x | Advisory build | 4.18.0-553.74.1.el8_10 | RHSA-2025:15471 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfox86_64 | Advisory build | 4.18.0-305.179.1.el8_4 | RHSA-2025:22752 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfox86_64 | Advisory build | 4.18.0-372.164.1.el8_6 | RHSA-2025:18043 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfox86_64 | Advisory build | 4.18.0-477.114.1.el8_8 | RHSA-2025:17570 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfox86_64 | Advisory build | 4.18.0-553.74.1.el8_10 | RHSA-2025:15471 |
| Red Hat Enterprise Linux | RHEL-8 | kernelaarch64 | Advisory build | 4.18.0-372.164.1.el8_6 | RHSA-2025:18043 |
| Red Hat Enterprise Linux | RHEL-8 | kernelaarch64 | Advisory build | 4.18.0-553.74.1.el8_10 | RHSA-2025:15471 |
| Red Hat Enterprise Linux | RHEL-8 | kernelppc64le | Advisory build | 4.18.0-372.164.1.el8_6 | RHSA-2025:18043 |
| Red Hat Enterprise Linux | RHEL-8 | kernelppc64le | Advisory build | 4.18.0-477.114.1.el8_8 | RHSA-2025:17570 |
| Red Hat Enterprise Linux | RHEL-8 | kernelppc64le | Advisory build | 4.18.0-553.74.1.el8_10 | RHSA-2025:15471 |
| Red Hat Enterprise Linux | RHEL-8 | kernels390x | Advisory build | 4.18.0-372.164.1.el8_6 | RHSA-2025:18043 |
| Red Hat Enterprise Linux | RHEL-8 | kernels390x | Advisory build | 4.18.0-553.74.1.el8_10 | RHSA-2025:15471 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-305.179.1.el8_4 | RHSA-2025:22752 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-372.164.1.el8_6 | RHSA-2025:18043 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-477.114.1.el8_8 | RHSA-2025:17570 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-553.74.1.el8_10 | RHSA-2025:15471 |
| Red Hat Enterprise Linux | RHEL-8 | kernelx86_64 | Advisory build | 4.18.0-305.179.1.el8_4 | RHSA-2025:22752 |
| Red Hat Enterprise Linux | RHEL-8 | kernelx86_64 | Advisory build | 4.18.0-372.164.1.el8_6 | RHSA-2025:18043 |
| Red Hat Enterprise Linux | RHEL-8 | kernelx86_64 | Advisory build | 4.18.0-477.114.1.el8_8 | RHSA-2025:17570 |
| Red Hat Enterprise Linux | RHEL-8 | kernelx86_64 | Advisory build | 4.18.0-553.74.1.el8_10 | RHSA-2025:15471 |
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: Don't use tnum_range on array range checking for poke descriptors Hsin-Wei reported a KASAN splat triggered by their BPF runtime fuzzer which is based on a customized syzkaller: BUG: KASAN: slab-out-of-bounds in bpf_int_jit_compile+0x1257/0x13f0 Read of size 8 at addr ffff888004e90b58 by task syz-executor.0/1489 CPU: 1 PID: 1489 Comm: syz-executor.0 Not tainted 5.19.0 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1.1 04/01/2014 Call Trace: <TASK> dump_stack_lvl+0x9c/0xc9 print_address_description.constprop.0+0x1f/0x1f0 ? bpf_int_jit_compile+0x1257/0x13f0 kasan_report.cold+0xeb/0x197 ? kvmalloc_node+0x170/0x200 ? bpf_int_jit_compile+0x1257/0x13f0 bpf_int_jit_compile+0x1257/0x13f0 ? arch_prepare_bpf_dispatcher+0xd0/0xd0 ? rcu_read_lock_sched_held+0x43/0x70 bpf_prog_select_runtime+0x3e8/0x640 ? bpf_obj_name_cpy+0x149/0x1b0 bpf_prog_load+0x102f/0x2220 ? __bpf_prog_put.constprop.0+0x220/0x220 ? find_held_lock+0x2c/0x110 ? __might_fault+0xd6/0x180 ? lock_downgrade+0x6e0/0x6e0 ? lock_is_held_type+0xa6/0x120 ? __might_fault+0x147/0x180 __sys_bpf+0x137b/0x6070 ? bpf_perf_link_attach+0x530/0x530 ? new_sync_read+0x600/0x600 ? __fget_files+0x255/0x450 ? lock_downgrade+0x6e0/0x6e0 ? fput+0x30/0x1a0 ? ksys_write+0x1a8/0x260 __x64_sys_bpf+0x7a/0xc0 ? syscall_enter_from_user_mode+0x21/0x70 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f917c4e2c2d The problem here is that a range of tnum_range(0, map->max_entries - 1) has limited ability to represent the concrete tight range with the tnum as the set of resulting states from value + mask can result in a superset of the actual intended range, and as such a tnum_in(range, reg->var_off) check may yield true when it shouldn't, for example tnum_range(0, 2) would result in 00XX -> v = 0000, m = 0011 such that the intended set of {0, 1, 2} is here represented by a less precise superset of {0, 1, 2, 3}. As the register is known const scalar, really just use the concrete reg->var_off.value for the upper index check.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is triggered by loading a crafted eBPF program via the bpf() syscall (BPF_PROG_LOAD → verifier → JIT), which is a local attack vector. AC:L - The attacker fully controls PROG_ARRAY max_entries and the constant tail-call index, and a public PoC reliably triggers the slab OOB during JIT with no conditions outside attacker control. PR:L - Exploitation requires loading BPF programs and creating a PROG_ARRAY (CAP_BPF, or unprivileged BPF where enabled); this is basic/low privilege relative to full root, consistent with other BPF verifier OOB scorings. UI:N - No victim action is required; the attacker triggers the bug solely by loading their own crafted BPF program. S:U - Impact stays within the kernel's authority (local memory corruption / potential privilege escalation); it does not cross a VM, IOMMU, or other security boundary. C:H - The bug is a slab out-of-bounds read of pointer-sized values from adjacent memory, and with attacker-chosen map sizes the OOB can span kilobytes, enabling high-impact disclosure primitives. I:H - The OOB-read pointer is passed to bpf_tail_call_direct_fixup / __bpf_arch_text_poke, which patches JIT code with a jump derived from that value, yielding a controllable integrity / control-flow corruption primitive. A:H - The OOB access was confirmed via KASAN as a slab-out-of-bounds read in bpf_int_jit_compile, and dereferencing a garbage target pointer can cause a kernel oops/panic.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | d2e4c1e6c2947269346054ac8937ccfe9e0bcc6b to < e8979807178434db8ceaa84dfcd44363e71e50bb (affected · git)d2e4c1e6c2947269346054ac8937ccfe9e0bcc6b to < 4f672112f8665102a5842c170be1713f8ff95919 (affected · git)d2e4c1e6c2947269346054ac8937ccfe9e0bcc6b to < a36df92c7ff7ecde2fb362241d0ab024dddd0597 (affected · git)d2e4c1e6c2947269346054ac8937ccfe9e0bcc6b to < a657182a5c5150cdfacb6640aad1d2712571a409 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.5 (affected)0 to < 5.5 (unaffected · semver)5.10.140 through 5.10.* (unaffected · semver)5.15.64 through 5.15.* (unaffected · semver)5.19.6 through 5.19.* (unaffected · semver)6.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
bpf: Don't use tnum_range on array range checking for poke descriptors
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 11fb16fbf3f5b4672477141d5091b983b9eae7d3111e9fd3e57b1f80089ec176
- Ingested
- 23 Sep 2026, 08:04:21 UTC
- Source record
- Official CVE record