CVE-2026-90157 (GCVE-0-2026-90157)

Vulnerability from cvelistv5 – Published: 2026-09-17 16:06 – Updated: 2026-10-19 08:58
VLAI
Title
bpf: Reject negative optlen in cgroup getsockopt hook
Summary
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.
Severity
No CVSS data available.
Assigner
Linux CNA under the mitre root
CNA scorecard D 53/100 over 7056 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 08f61a34913558e06576e7b6318bf583f273c1be , < 5b09d984b38b018b123c3a9e02a96bbc6468dbe5 (git)
Affected: 9cacf81f8161111db25f98e78a7a0e32ae142b3f , < 554ba7195c4108726450e24480c8449990c2268c (git)
Affected: 9cacf81f8161111db25f98e78a7a0e32ae142b3f , < d02a12b4085ffe41ea750b1007f7a9c7aee2875a (git)
Affected: 9cacf81f8161111db25f98e78a7a0e32ae142b3f , < e6fbf0eba87f50084d67508898f6ad6fc7ff1ba2 (git)
Affected: 9cacf81f8161111db25f98e78a7a0e32ae142b3f , < f68671b1a98d426c57864bd457c125fee14ac1a5 (git)
Affected: 9cacf81f8161111db25f98e78a7a0e32ae142b3f , < 2bdbe00454200fcb0110f31eeca8d906a3515e74 (git)
Affected: 9cacf81f8161111db25f98e78a7a0e32ae142b3f , < 31a89af4f513d750fec196e2bb6195a7d4473e9f (git)
Affected: 9cacf81f8161111db25f98e78a7a0e32ae142b3f , < 1b5aacd5b2419b0790e955e466d389a61c79b4b1 (git)
Affected: 5.10.188 , < 5.10.270 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 5.12
Unaffected: 0 , < 5.12 (semver)
Unaffected: 5.10.270 , ≤ 5.10.* (semver)
Unaffected: 5.15.221 , ≤ 5.15.* (semver)
Unaffected: 6.1.188 , ≤ 6.1.* (semver)
Unaffected: 6.6.157 , ≤ 6.6.* (semver)
Unaffected: 6.12.110 , ≤ 6.12.* (semver)
Unaffected: 6.18.52 , ≤ 6.18.* (semver)
Unaffected: 7.2.6 , ≤ 7.2.* (semver)
Unaffected: 7.3 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "kernel/bpf/cgroup.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5b09d984b38b018b123c3a9e02a96bbc6468dbe5",
              "status": "affected",
              "version": "08f61a34913558e06576e7b6318bf583f273c1be",
              "versionType": "git"
            },
            {
              "lessThan": "554ba7195c4108726450e24480c8449990c2268c",
              "status": "affected",
              "version": "9cacf81f8161111db25f98e78a7a0e32ae142b3f",
              "versionType": "git"
            },
            {
              "lessThan": "d02a12b4085ffe41ea750b1007f7a9c7aee2875a",
              "status": "affected",
              "version": "9cacf81f8161111db25f98e78a7a0e32ae142b3f",
              "versionType": "git"
            },
            {
              "lessThan": "e6fbf0eba87f50084d67508898f6ad6fc7ff1ba2",
              "status": "affected",
              "version": "9cacf81f8161111db25f98e78a7a0e32ae142b3f",
              "versionType": "git"
            },
            {
              "lessThan": "f68671b1a98d426c57864bd457c125fee14ac1a5",
              "status": "affected",
              "version": "9cacf81f8161111db25f98e78a7a0e32ae142b3f",
              "versionType": "git"
            },
            {
              "lessThan": "2bdbe00454200fcb0110f31eeca8d906a3515e74",
              "status": "affected",
              "version": "9cacf81f8161111db25f98e78a7a0e32ae142b3f",
              "versionType": "git"
            },
            {
              "lessThan": "31a89af4f513d750fec196e2bb6195a7d4473e9f",
              "status": "affected",
              "version": "9cacf81f8161111db25f98e78a7a0e32ae142b3f",
              "versionType": "git"
            },
            {
              "lessThan": "1b5aacd5b2419b0790e955e466d389a61c79b4b1",
              "status": "affected",
              "version": "9cacf81f8161111db25f98e78a7a0e32ae142b3f",
              "versionType": "git"
            },
            {
              "lessThan": "5.10.270",
              "status": "affected",
              "version": "5.10.188",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "kernel/bpf/cgroup.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.12"
            },
            {
              "lessThan": "5.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.270",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.221",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.188",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.157",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.110",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.52",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.270",
                  "versionStartIncluding": "5.10.188",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.221",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.188",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.157",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.110",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.52",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.6",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Reject negative optlen in cgroup getsockopt hook\n\nA cgroup getsockopt BPF program can shrink ctx-\u003eoptlen after the\nkernel getsockopt handler has run. The kernel-buffer variant, used by\nTCP_ZEROCOPY_RECEIVE, only rejects values larger than the original\nlength.\n\nIf BPF writes a negative optlen, that value is accepted and propagated\nback to the TCP getsockopt code. It can then be passed to\ncopy_to_sockptr() as a size_t and trigger the hardened usercopy\nbytes \u003e INT_MAX warning.\n\nReject negative ctx.optlen in __cgroup_bpf_run_filter_getsockopt_kern(),\nmatching the lower-bound validation already present in the sockptr-based\ngetsockopt hook."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-19T08:58:55.961Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/5b09d984b38b018b123c3a9e02a96bbc6468dbe5"
        },
        {
          "url": "https://git.kernel.org/stable/c/554ba7195c4108726450e24480c8449990c2268c"
        },
        {
          "url": "https://git.kernel.org/stable/c/d02a12b4085ffe41ea750b1007f7a9c7aee2875a"
        },
        {
          "url": "https://git.kernel.org/stable/c/e6fbf0eba87f50084d67508898f6ad6fc7ff1ba2"
        },
        {
          "url": "https://git.kernel.org/stable/c/f68671b1a98d426c57864bd457c125fee14ac1a5"
        },
        {
          "url": "https://git.kernel.org/stable/c/2bdbe00454200fcb0110f31eeca8d906a3515e74"
        },
        {
          "url": "https://git.kernel.org/stable/c/31a89af4f513d750fec196e2bb6195a7d4473e9f"
        },
        {
          "url": "https://git.kernel.org/stable/c/1b5aacd5b2419b0790e955e466d389a61c79b4b1"
        }
      ],
      "title": "bpf: Reject negative optlen in cgroup getsockopt hook",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-90157",
    "datePublished": "2026-09-17T16:06:49.081Z",
    "dateReserved": "2026-09-11T19:38:34.790Z",
    "dateUpdated": "2026-10-19T08:58:55.961Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-90157",
      "date": "2026-10-25",
      "epss": "0.00216",
      "percentile": "0.11966"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "kernel/bpf/cgroup.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "5b09d984b38b018b123c3a9e02a96bbc6468dbe5",
                    "status": "affected",
                    "version": "08f61a34913558e06576e7b6318bf583f273c1be",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "554ba7195c4108726450e24480c8449990c2268c",
                    "status": "affected",
                    "version": "9cacf81f8161111db25f98e78a7a0e32ae142b3f",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "d02a12b4085ffe41ea750b1007f7a9c7aee2875a",
                    "status": "affected",
                    "version": "9cacf81f8161111db25f98e78a7a0e32ae142b3f",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e6fbf0eba87f50084d67508898f6ad6fc7ff1ba2",
                    "status": "affected",
                    "version": "9cacf81f8161111db25f98e78a7a0e32ae142b3f",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "f68671b1a98d426c57864bd457c125fee14ac1a5",
                    "status": "affected",
                    "version": "9cacf81f8161111db25f98e78a7a0e32ae142b3f",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "2bdbe00454200fcb0110f31eeca8d906a3515e74",
                    "status": "affected",
                    "version": "9cacf81f8161111db25f98e78a7a0e32ae142b3f",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "31a89af4f513d750fec196e2bb6195a7d4473e9f",
                    "status": "affected",
                    "version": "9cacf81f8161111db25f98e78a7a0e32ae142b3f",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "1b5aacd5b2419b0790e955e466d389a61c79b4b1",
                    "status": "affected",
                    "version": "9cacf81f8161111db25f98e78a7a0e32ae142b3f",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "5.10.270",
                    "status": "affected",
                    "version": "5.10.188",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "kernel/bpf/cgroup.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.12"
                  },
                  {
                    "lessThan": "5.12",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.10.*",
                    "status": "unaffected",
                    "version": "5.10.270",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.221",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.188",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.157",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.110",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.52",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.2.*",
                    "status": "unaffected",
                    "version": "7.2.6",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.3",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Reject negative optlen in cgroup getsockopt hook\n\nA cgroup getsockopt BPF program can shrink ctx-\u003eoptlen after the\nkernel getsockopt handler has run. The kernel-buffer variant, used by\nTCP_ZEROCOPY_RECEIVE, only rejects values larger than the original\nlength.\n\nIf BPF writes a negative optlen, that value is accepted and propagated\nback to the TCP getsockopt code. It can then be passed to\ncopy_to_sockptr() as a size_t and trigger the hardened usercopy\nbytes \u003e INT_MAX warning.\n\nReject negative ctx.optlen in __cgroup_bpf_run_filter_getsockopt_kern(),\nmatching the lower-bound validation already present in the sockptr-based\ngetsockopt hook."
          }
        ],
        "id": "CVE-2026-90157",
        "lastModified": "2026-10-19T09:19:05.677",
        "metrics": {},
        "published": "2026-09-17T17:17:08.817",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/1b5aacd5b2419b0790e955e466d389a61c79b4b1"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/2bdbe00454200fcb0110f31eeca8d906a3515e74"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/31a89af4f513d750fec196e2bb6195a7d4473e9f"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/554ba7195c4108726450e24480c8449990c2268c"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/5b09d984b38b018b123c3a9e02a96bbc6468dbe5"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/d02a12b4085ffe41ea750b1007f7a9c7aee2875a"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e6fbf0eba87f50084d67508898f6ad6fc7ff1ba2"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/f68671b1a98d426c57864bd457c125fee14ac1a5"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-10-17T21:29:45+00:00",
      "cve": "CVE-2026-90157",
      "id": "CVE-2026-90157",
      "initial_release_date": "2026-09-17T00:00:00+00:00",
      "product_status:known_affected": "235",
      "product_status:known_not_affected": "42",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: bpf: Reject negative optlen in cgroup getsockopt hook",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-90157.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "low",
      "current_release_date": "2026-10-20T00:45:20Z",
      "cve": "CVE-2026-90157",
      "id": "CVE-2026-90157",
      "initial_release_date": "2026-09-18T00:20:38Z",
      "product_status:known_affected": "205",
      "product_status:known_not_affected": "143",
      "product_status:recommended": "4",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-90157",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-90157.json",
      "version": "6"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.