VDB

CVE-2026-90157

CVE-2026-90157 PUBLISHED

bpf: Reject negative optlen in cgroup getsockopt hook

Reported by linux · Published September 17, 2026

In the Linux kernel, the following vulnerability has been resolved: bpf: Reject negative optlen in cgroup getsockopt hook A cgroup getsockopt BPF program can shrink ctx->optlen after the kernel getsockopt handler has run. The kernel-buffer variant, used by TCP_ZEROCOPY_RECEIVE, only rejects values larger than the original length. If BPF writes a negative optlen, that value is accepted and propagated back to the TCP getsockopt code. It can then be passed to copy_to_sockptr() as a size_t and trigger the hardened usercopy bytes > INT_MAX warning. Reject negative ctx.optlen in __cgroup_bpf_run_filter_getsockopt_kern(), matching the lower-bound validation already present in the sockptr-based getsockopt hook.

EPSS 0.22% · 12.1th percentile

Fixed versions

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

PackageEcosystemFixed in
bpftool6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.110-135.201.amzn2023
kernel6.18-develAmazon Linux1:6.18.54-121.166.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.54-121.166.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.110-135.201.amzn2023
perfAmazon Linux1:6.1.188-233.385.amzn2023
kernel6.18-toolsAmazon Linux1:6.18.54-121.166.amzn2023
kernel6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel-livepatch-6.18.54-121.166Amazon Linux1:1.0-0.amzn2023
kernel-tools-develAmazon Linux1:6.1.188-233.385.amzn2023
LinuxLinuxf68671b1a98d426c57864bd457c125fee14ac1a5, e6fbf0eba87f50084d67508898f6ad6fc7ff1ba2, d02a12b4085ffe41ea750b1007f7a9c7aee2875a, 5b09d984b38b018b123c3a9e02a96bbc6468dbe5, 554ba7195c4108726450e24480c8449990c2268c, 5.10.270, 31a89af4f513d750fec196e2bb6195a7d4473e9f, 2bdbe00454200fcb0110f31eeca8d906a3515e74, 1b5aacd5b2419b0790e955e466d389a61c79b4b1

Risk scores

EPSS Score
0.22%
12.1th percentile

Affected products

VendorProductVersions
LinuxLinux08f61a34913558e06576e7b6318bf583f273c1be, 9cacf81f8161111db25f98e78a7a0e32ae142b3f, 9cacf81f8161111db25f98e78a7a0e32ae142b3f
LinuxLinux5.12, 0, 5.10.270
amazon:2023bpftool6.180
amazon:2023kernel6.12-tools0
amazon:2023kernel6.18-devel0
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.12-tools-devel0
amazon:2023perf0
amazon:2023kernel6.18-tools0
amazon:2023kernel6.180
amazon:2023kernel-livepatch-6.18.54-121.1660
amazon:2023kernel-tools-devel0
LinuxLinux7.2.6, 6.18.52, 08f61a34913558e06576e7b6318bf583f273c1be
amazon:2023kernel-modules-extra-common0
amazon:2023python3-perf0
amazon:2023kernel-modules-extra0
amazon:2023kernel-livepatch-6.1.188-233.3850
amazon:2023kernel6.12-modules-extra-common0
amazon:2023bpftool6.120
amazon:2023bpftool0

…and 18 more

Timeline

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

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-90157
vulnetix vdb fixes CVE-2026-90157

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