VDB

CVE-2026-90313

CVE-2026-90313 PUBLISHED

bpf, cgroup: Fix invalid storage access after __cgroup_bpf_attach failed

Reported by linux · Published September 17, 2026

In the Linux kernel, the following vulnerability has been resolved: bpf, cgroup: Fix invalid storage access after __cgroup_bpf_attach failed A potential invalid storage access issue can occur after replacing a cgroup bpf prog. This occurs in the following scenario: 1. prog1 with storage is attached to a cgroup in multi-attach mode. 2. prog1 is replaced with prog2 using BPF_F_REPLACE in multi-attach mode, but fails midway (e.g. in bpf_trampoline_link_cgroup_shim or update_effective_progs). 3. A new prog3 is attached to the cgroup in multi-attach mode. The reason is that __cgroup_bpf_attach overwrites pl->storage with the new storage prior to attachment completion. When attachment fails midway, the cleanup path calls bpf_cgroup_storages_free(new_storage) to free the newly allocated storage, but fails to restore pl->storage back to old_storage. Consequently, the still-active prog1 holds invalid or dangling storage pointers, leading to an invalid memory access when prog1 executes and calls bpf_get_local_storage. Additionally, original pl->flags and cgrp->bpf.flags[atype] are left unrestored. Fix this by saving old_pl_flags, old_storage, and old_flags prior to the update, and properly restoring all of them in the cleanup path on error.

EPSS 0.21% · 11.4th percentile

Fixed versions

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

PackageEcosystemFixed in
bpftool6.12Amazon Linux1:6.12.110-135.201.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.110-135.201.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.54-121.166.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.54-121.166.amzn2023
LinuxLinuxe26db0d636e4c24a6b16683ea95cf5077c64d74b, aaca16e042527f7efe48b50799bc662f1a191ce1, 86ead176301109b78e1d14c0e9d0d9ff9723c769, 6655c409707ec8ce9ce0850ffe4fe02331fd4d9c, 2c2218560b6e28a63ff7834ba26d09ff8efdee39, 217b257d2c39e8dc32d691e8952f3cd921a80233

Risk scores

EPSS Score
0.21%
11.4th percentile

Affected products

VendorProductVersions
LinuxLinux7d9c3427894fe70d1347b4820476bf37736d2ff0, 7d9c3427894fe70d1347b4820476bf37736d2ff0, 7d9c3427894fe70d1347b4820476bf37736d2ff0
LinuxLinux5.9, 0, 6.1.191
amazon:2023bpftool6.120
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.18-tools-devel0
LinuxLinux7d9c3427894fe70d1347b4820476bf37736d2ff0, 7.3, 7.2.6
amazon:2023kernel6.12-headers0
amazon:2023microvm-kernel6.180
amazon:2023kernel-livepatch-6.12.110-135.2010
amazon:2023kernel6.12-tools0
amazon:2023bpftool6.180
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.18-headers0
amazon:2023kernel6.18-tools0
amazon:2023perf6.120
amazon:2023kernel6.18-modules-extra-common0
amazon:2023python3-perf6.120
amazon:2023kernel-livepatch-6.18.54-121.1660
amazon:2023kernel6.18-devel0

…and 7 more

Timeline

  • Sep 17, 2026 Coalition ESS Score
  • Sep 17, 2026 CVE Published
  • Sep 18, 2026 EPSS Score (11 in total, the first dated here)
  • Oct 30, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-90313
vulnetix vdb fixes CVE-2026-90313

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