CVE-2026-98039
bpf: Require MEM_PERCPU for percpu kptr stores
Reported by linux · Published September 25, 2026
In the Linux kernel, the following vulnerability has been resolved: bpf: Require MEM_PERCPU for percpu kptr stores map_kptr_match_type() treats perm_flags as the set of register type flags that a kptr field permits. Adding MEM_PERCPU to that set for BPF_KPTR_PERCPU does not require the source register to carry it, however. The subset test consequently accepts both a plain bpf_obj_new() allocation and a referenced kernel pointer into a __percpu_kptr map field. Loads from the field are always marked MEM_PERCPU. Consumers then treat the stored value as the cookie returned by bpf_percpu_obj_new(): per-CPU pointer helpers relocate it, and map teardown selects the per-CPU free path. A plain allocation can therefore provide an arbitrary kernel read/write, while a kernel pointer can be relocated into an invalid address or sent through a missing destructor. Require the source MEM_PERCPU flag to match the destination field kind. This preserves valid bpf_percpu_obj_new() stores and rejects both the program-BTF and kernel-BTF variants.
EPSS 0.17% · 6.1th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.18-tools | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| kernel-livepatch-6.18.54-121.166 | Amazon Linux | 1:1.0-0.amzn2023 |
| bpftool6.18 | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| python3-perf6.18 | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| kernel6.18 | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 36d8bdf75a93190e5669b9d1d95994e13e15ba1d, 36d8bdf75a93190e5669b9d1d95994e13e15ba1d, 36d8bdf75a93190e5669b9d1d95994e13e15ba1d |
| Linux | Linux | 6.7, 0, 6.12.111 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel-livepatch-6.18.54-121.166 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel6.18 | 0 |
| linux | linux_kernel | 6.7, 6.7, 6.7 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| Linux | Linux | 6.12.111, 0, 6.7 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
…and 7 more
Timeline
- Sep 25, 2026 CVE Published
- Sep 26, 2026 EPSS Score (6 in total, the first dated here)
- Oct 19, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-98039
vulnetix vdb fixes CVE-2026-98039
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98039/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart