CVE-2026-45839
Out-of-Bounds Read in Linux Kernel BPF CO-RE Accessor
Publication date: 2026-05-27
Last updated on: 2026-05-27
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | 7.0.0-rc6 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the Linux kernel's handling of BPF CO-RE accessor indices. CO-RE accessor strings describe a path to a target field in kernel data structures using colon-separated indices. The function bpf_core_parse_spec() parses these indices but incorrectly accepts negative values like -1.
Because the bounds checks only verify the upper bound and not the lower bound, negative indices bypass these checks. When a negative index is used, it is cast to a large unsigned integer, causing an out-of-bounds read far beyond the intended array.
A crafted BPF program using a negative CO-RE accessor on any struct present in the kernel's BTF data can cause a deterministic kernel crash during BPF program loading on systems with CONFIG_DEBUG_INFO_BTF enabled.
How can this vulnerability impact me? :
This vulnerability can cause a denial of service by crashing the Linux kernel when a malicious BPF program with a negative CO-RE accessor index is loaded.
Since the crash occurs deterministically during BPF_PROG_LOAD, an attacker with CAP_BPF capability can exploit this to disrupt system availability.