VDB

CVE-2026-90312

CVE-2026-90312 PUBLISHED CVSS 7.8 HIGH

bpf: Check load-acquire src ptr type before the load

Reported by linux · Published September 17, 2026

In the Linux kernel, the following vulnerability has been resolved: bpf: Check load-acquire src ptr type before the load check_atomic_load() calls check_load_mem() before atomic_ptr_type_ok(). For a load-acquire that fetches into its own source register (dst_reg == src_reg), check_load_mem() overwrites src_reg's type with the type of the loaded value, so the subsequent atomic_ptr_type_ok() no longer sees the source pointer and fails to reject the disallowed types (ctx, pkt, flow_keys, sock). Since bpf_convert_ctx_accesses() does not rewrite atomic loads, the raw access to the underlying kernel object is left in place. The destination type is taken from the ctx access itself, so a load-acquire of the sk field of struct __sk_buff for example leaves the register typed as PTR_TO_SOCK_COMMON_OR_NULL, which type_is_sk_pointer() does not match either, while it actually holds unconverted struct sk_buff bytes. Once the NULL check has passed this is a type confusion, not just a leak of kernel data. Validate src_reg with check_reg_arg() and check the source pointer type with atomic_ptr_type_ok() before the load again, mirroring check_atomic_rmw(). Out-of-range register numbers are already rejected earlier by check_and_resolve_insns() (commit 503d21ef8eac ("bpf: Do register range validation early")), and the only exemption there, is_stack_arg_ldx(), requires BPF_LDX | BPF_MEM | BPF_DW and thus never matches a BPF_ATOMIC insn. atomic_ptr_type_ok() can therefore not dereference register state out of bounds, that is, the out-of-bounds read addressed by the Fixes commit below does not reappear (as proven also via selftest).

EPSS 0.16% · 5.4th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3-perf6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel6.18-toolsAmazon Linux1:6.18.54-121.166.amzn2023
kernel-livepatch-6.18.54-121.166Amazon Linux1:1.0-0.amzn2023
kernel6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel6.18-modules-extra-commonAmazon Linux1:6.18.54-121.166.amzn2023
microvm-kernel6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.54-121.166.amzn2023

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.16%
5.4th percentile

Affected products

VendorProductVersions
LinuxLinuxc03bb2fa327e4c25d6c5360a8803a4b1cdc2d0b9, c03bb2fa327e4c25d6c5360a8803a4b1cdc2d0b9, c03bb2fa327e4c25d6c5360a8803a4b1cdc2d0b9
LinuxLinux6.15, 0, 6.18.52
amazon:2023python3-perf6.180
amazon:2023kernel6.18-tools0
amazon:2023kernel-livepatch-6.18.54-121.1660
amazon:2023kernel6.180
amazon:2023kernel6.18-modules-extra-common0
amazon:2023microvm-kernel6.180
amazon:2023kernel6.18-modules-extra0
LinuxLinux7.3, *, *
amazon:2023kernel6.18-devel0
amazon:2023bpftool6.180
amazon:2023perf6.180
amazon:2023kernel6.18-tools-devel0
linuxlinux_kernel6.15, 6.15, 6.15
amazon:2023kernel6.18-headers0

Timeline

  • Sep 17, 2026 Coalition ESS Score
  • Sep 17, 2026 CVE Published
  • Sep 18, 2026 EPSS Score (9 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-90312
vulnetix vdb fixes CVE-2026-90312

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-90312/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 ›