CVE-2026-90157
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bpftool6.18 | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.110-135.201.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| kernel6.18-tools-devel | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.110-135.201.amzn2023 |
| perf | Amazon Linux | 1:6.1.188-233.385.amzn2023 |
| kernel6.18-tools | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| kernel6.18 | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| kernel-livepatch-6.18.54-121.166 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-tools-devel | Amazon Linux | 1:6.1.188-233.385.amzn2023 |
| Linux | Linux | f68671b1a98d426c57864bd457c125fee14ac1a5, e6fbf0eba87f50084d67508898f6ad6fc7ff1ba2, d02a12b4085ffe41ea750b1007f7a9c7aee2875a, 5b09d984b38b018b123c3a9e02a96bbc6468dbe5, 554ba7195c4108726450e24480c8449990c2268c, 5.10.270, 31a89af4f513d750fec196e2bb6195a7d4473e9f, 2bdbe00454200fcb0110f31eeca8d906a3515e74, 1b5aacd5b2419b0790e955e466d389a61c79b4b1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 08f61a34913558e06576e7b6318bf583f273c1be, 9cacf81f8161111db25f98e78a7a0e32ae142b3f, 9cacf81f8161111db25f98e78a7a0e32ae142b3f |
| Linux | Linux | 5.12, 0, 5.10.270 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel-livepatch-6.18.54-121.166 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| Linux | Linux | 7.2.6, 6.18.52, 08f61a34913558e06576e7b6318bf583f273c1be |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-livepatch-6.1.188-233.385 | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | bpftool | 0 |
…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