VDB

CVE-2026-98039

CVE-2026-98039 PUBLISHED

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.

PackageEcosystemFixed in
kernel6.18-toolsAmazon Linux1:6.18.54-121.166.amzn2023
kernel6.18-develAmazon Linux1:6.18.54-121.166.amzn2023
kernel-livepatch-6.18.54-121.166Amazon Linux1:1.0-0.amzn2023
bpftool6.18Amazon Linux1:6.18.54-121.166.amzn2023
python3-perf6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel6.18Amazon Linux1:6.18.54-121.166.amzn2023

Risk scores

EPSS Score
0.17%
6.1th percentile

Affected products

VendorProductVersions
LinuxLinux36d8bdf75a93190e5669b9d1d95994e13e15ba1d, 36d8bdf75a93190e5669b9d1d95994e13e15ba1d, 36d8bdf75a93190e5669b9d1d95994e13e15ba1d
LinuxLinux6.7, 0, 6.12.111
amazon:2023kernel6.18-tools0
amazon:2023kernel6.18-devel0
amazon:2023kernel-livepatch-6.18.54-121.1660
amazon:2023bpftool6.180
amazon:2023python3-perf6.180
amazon:2023kernel6.180
linuxlinux_kernel6.7, 6.7, 6.7
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.120
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-headers0
LinuxLinux6.12.111, 0, 6.7
amazon:2023kernel6.18-modules-extra0
amazon:2023microvm-kernel6.180
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.18-modules-extra-common0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›