CVE-2026-90157

bpf: Reject negative optlen in cgroup getsockopt hook

No CVSS score yet EPSS 0.22%

Published 17 Sep 2026 Updated 19 Oct 2026 CNA: Linux

Check your servers for CVE-2026-90157

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-90157 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.23% of all scored CVEs. Scores of 29 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 08f61a34913558e06576e7b6318bf583f273c1be, before 5b09d984b38b018b123c3a9e02a96bbc6468dbe5
affected from 9cacf81f8161111db25f98e78a7a0e32ae142b3f, before 554ba7195c4108726450e24480c8449990c2268c
affected from 9cacf81f8161111db25f98e78a7a0e32ae142b3f, before d02a12b4085ffe41ea750b1007f7a9c7aee2875a
affected from 9cacf81f8161111db25f98e78a7a0e32ae142b3f, before e6fbf0eba87f50084d67508898f6ad6fc7ff1ba2
affected from 9cacf81f8161111db25f98e78a7a0e32ae142b3f, before f68671b1a98d426c57864bd457c125fee14ac1a5
affected from 9cacf81f8161111db25f98e78a7a0e32ae142b3f, before 2bdbe00454200fcb0110f31eeca8d906a3515e74
affected from 9cacf81f8161111db25f98e78a7a0e32ae142b3f, before 31a89af4f513d750fec196e2bb6195a7d4473e9f
affected from 9cacf81f8161111db25f98e78a7a0e32ae142b3f, before 1b5aacd5b2419b0790e955e466d389a61c79b4b1
affected from 5.10.188, before 5.10.270
Other versions: unaffected
Linux
affected 5.12
unaffected before 5.12
unaffected from 5.10.270 up to and including 5.10.*
unaffected from 5.15.221 up to and including 5.15.*
unaffected from 6.1.188 up to and including 6.1.*
unaffected from 6.6.157 up to and including 6.6.*
unaffected from 6.12.110 up to and including 6.12.*
unaffected from 6.18.52 up to and including 6.18.*
unaffected from 7.2.6 up to and including 7.2.*
unaffected 7.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-90157 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-90157

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-90157
trivy image --scanners vuln IMAGE | grep CVE-2026-90157

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-90157 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.