CVE-2026-99725 (GCVE-0-2026-99725)

Vulnerability from cvelistv5 – Published: 2026-11-20 05:51 – Updated: 2026-11-22 11:09
VLAI
Title
cipso: fix optlen corruption in cipso_v4_delopt()
Summary
In the Linux kernel, the following vulnerability has been resolved: cipso: fix optlen corruption in cipso_v4_delopt() cipso_v4_delopt() recomputes the option length by walking the option buffer after the CIPSO option has been moved out. The walk then reads the stale bytes at the tail of the buffer as option data, and a crafted setsockopt(IP_OPTIONS) buffer can make it treat one of them as an option length, increasing opt->opt.optlen beyond the valid option data. The corrupted length stays on the socket and is later used as the copy length by getsockopt(IP_OPTIONS) and by the udp/raw/ping sendmsg paths, where it exceeds the size of the buffers they copy into. Compute the new length from the intact options before the move and subtract the CIPSO length, and fill the padding with IPOPT_END.
Impacted products
Vendor Product Version
Linux Linux Affected: 014ab19a69c325f52d7bae54ceeda73d6307ae0c , < 699141380f7f249b7ee594198d9bea6bcd4862ea (git)
Affected: 014ab19a69c325f52d7bae54ceeda73d6307ae0c , < 4077bd2bcebf43922f84aa87f6839153212df509 (git)
Affected: 014ab19a69c325f52d7bae54ceeda73d6307ae0c , < 0d9a6f9778ccd4401ded4ec9faf750b7b4a14ce7 (git)
Affected: 014ab19a69c325f52d7bae54ceeda73d6307ae0c , < 1f1f8e8c5176234fa31858cd25f2e9b88aac0a45 (git)
Create a notification for this product.
Linux Linux Affected: 2.6.28
Unaffected: 0 , < 2.6.28 (semver)
Unaffected: 6.12.118 , ≤ 6.12.* (semver)
Unaffected: 6.18.64 , ≤ 6.18.* (semver)
Unaffected: 7.3.5 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/ipv4/cipso_ipv4.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "699141380f7f249b7ee594198d9bea6bcd4862ea",
              "status": "affected",
              "version": "014ab19a69c325f52d7bae54ceeda73d6307ae0c",
              "versionType": "git"
            },
            {
              "lessThan": "4077bd2bcebf43922f84aa87f6839153212df509",
              "status": "affected",
              "version": "014ab19a69c325f52d7bae54ceeda73d6307ae0c",
              "versionType": "git"
            },
            {
              "lessThan": "0d9a6f9778ccd4401ded4ec9faf750b7b4a14ce7",
              "status": "affected",
              "version": "014ab19a69c325f52d7bae54ceeda73d6307ae0c",
              "versionType": "git"
            },
            {
              "lessThan": "1f1f8e8c5176234fa31858cd25f2e9b88aac0a45",
              "status": "affected",
              "version": "014ab19a69c325f52d7bae54ceeda73d6307ae0c",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/ipv4/cipso_ipv4.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.28"
            },
            {
              "lessThan": "2.6.28",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.118",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.64",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.118",
                  "versionStartIncluding": "2.6.28",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.64",
                  "versionStartIncluding": "2.6.28",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.5",
                  "versionStartIncluding": "2.6.28",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc2",
                  "versionStartIncluding": "2.6.28",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncipso: fix optlen corruption in cipso_v4_delopt()\n\ncipso_v4_delopt() recomputes the option length by walking the option\nbuffer after the CIPSO option has been moved out.  The walk then reads\nthe stale bytes at the tail of the buffer as option data, and a crafted\nsetsockopt(IP_OPTIONS) buffer can make it treat one of them as an option\nlength, increasing opt-\u003eopt.optlen beyond the valid option data.\n\nThe corrupted length stays on the socket and is later used as the copy\nlength by getsockopt(IP_OPTIONS) and by the udp/raw/ping sendmsg paths,\nwhere it exceeds the size of the buffers they copy into.\n\nCompute the new length from the intact options before the move and\nsubtract the CIPSO length, and fill the padding with IPOPT_END."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - do_ip_setsockopt(IP_OPTIONS) installs the caller\u0027s buffer via ip_options_get() on inet_opt; cipso_v4_delopt() then memmoves the CIPSO option out and cipso_v4_get_actual_opt_len() treats a stale tail byte of that buffer as an option length. On-wire options saved by tcp_v4_save_options() are rebuilt by __ip_options_echo() with CIPSO last, so a remote SYN does not supply the length byte that inflates opt.optlen.\nAC:H - netlbl_sock_delattr() corrupts a userspace IP_OPTIONS buffer in NLBL_REQSKB: netlbl_sock_setattr() returned -EDESTADDRREQ for ADDRSELECT, and selinux_netlbl_socket_setsockopt() blocks IP_OPTIONS once NLBL_LABELED. connect(AF_UNSPEC) calls selinux_netlbl_socket_connect_helper(). Smack does this from smack_netlbl_delete() only for a smk_net4addr_list host. cipso_v4_validate() needs a DOI and that map, both GENL_ADMIN_PERM in init_user_ns.\nPR:L - ip_options_compile() accepts a userspace IPOPT_CIPSO option when ns_capable(net-\u003euser_ns, CAP_NET_RAW) is true, which holds for the owner of a user namespace that owns the socket\u0027s netns.\nUI:N - The attacker calls setsockopt(IP_OPTIONS) and then connect(AF_UNSPEC), which selinux_netlbl_socket_connect_helper() turns into netlbl_sock_delattr() when nlbl_state is NLBL_REQSKB.\nS:U - The inflated opt.optlen is consumed inside the caller\u0027s kernel, by do_ip_getsockopt(), udp_sendmsg(), raw_sendmsg(), ping_v4_sendmsg(), and ip_setup_cork(), the same security authority as the socket.\nC:H - do_ip_getsockopt(IP_OPTIONS) memcpy()s sizeof(struct ip_options)+opt.optlen out of an inet_opt that ip_options_get() allocated with at most 40 bytes of __data, then copy_to_sockptr() returns min(user length, opt.optlen) bytes of opt-\u003e__data to the caller. cipso_v4_get_actual_opt_len() adds a stale data[iter+1] (u8, up to 255) and stores the result in the unsigned char optlen, so the copy reads on the order of 200 bytes past the allocation.\nI:H - udp_sendmsg(), raw_sendmsg(), and ping_v4_sendmsg() memcpy socket options into a DEFINE_RAW_FLEX buffer of IP_OPTIONS_DATA_FIXED_SIZE (40) using opt.optlen as the added length, and ip_setup_cork() memcpy()s that length into kmalloc(sizeof(struct ip_options)+40). optlen above 40 is an out-of-bounds write of up to about 215 bytes on that stack frame and that heap object.\nA:H - Those copies overwrite the stack past the 40-byte option tail in do_ip_getsockopt() and the sendmsg paths. On a TCP socket, cipso_v4_sock_delattr() skips the icsk_ext_hdr_len update when hdr_delta is negative, so a later skb_push() in __ip_queue_xmit() uses the inflated optlen against headroom reserved for the original length and faults."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-22T11:09:52.818Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/699141380f7f249b7ee594198d9bea6bcd4862ea"
        },
        {
          "url": "https://git.kernel.org/stable/c/4077bd2bcebf43922f84aa87f6839153212df509"
        },
        {
          "url": "https://git.kernel.org/stable/c/0d9a6f9778ccd4401ded4ec9faf750b7b4a14ce7"
        },
        {
          "url": "https://git.kernel.org/stable/c/1f1f8e8c5176234fa31858cd25f2e9b88aac0a45"
        }
      ],
      "title": "cipso: fix optlen corruption in cipso_v4_delopt()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99725",
    "datePublished": "2026-11-20T05:51:01.408Z",
    "dateReserved": "2026-09-25T10:25:14.431Z",
    "dateUpdated": "2026-11-22T11:09:52.818Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99725",
      "date": "2026-11-24",
      "epss": "0.00154",
      "percentile": "0.04429"
    },
    "microsoft_vex": {
      "current_release_date": "2026-11-24T01:40:37.000Z",
      "cve": "CVE-2026-99725",
      "id": "msrc_CVE-2026-99725",
      "initial_release_date": "2026-11-20T18:16:09.000Z",
      "product_status:fixed": "1",
      "product_status:known_affected": "2",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "cipso: fix optlen corruption in cipso_v4_delopt()",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99725.json",
      "version": "4"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "net/ipv4/cipso_ipv4.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "699141380f7f249b7ee594198d9bea6bcd4862ea",
                    "status": "affected",
                    "version": "014ab19a69c325f52d7bae54ceeda73d6307ae0c",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "4077bd2bcebf43922f84aa87f6839153212df509",
                    "status": "affected",
                    "version": "014ab19a69c325f52d7bae54ceeda73d6307ae0c",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "0d9a6f9778ccd4401ded4ec9faf750b7b4a14ce7",
                    "status": "affected",
                    "version": "014ab19a69c325f52d7bae54ceeda73d6307ae0c",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "1f1f8e8c5176234fa31858cd25f2e9b88aac0a45",
                    "status": "affected",
                    "version": "014ab19a69c325f52d7bae54ceeda73d6307ae0c",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "net/ipv4/cipso_ipv4.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "2.6.28"
                  },
                  {
                    "lessThan": "2.6.28",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.118",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.64",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.5",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc2",
                    "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\ncipso: fix optlen corruption in cipso_v4_delopt()\n\ncipso_v4_delopt() recomputes the option length by walking the option\nbuffer after the CIPSO option has been moved out.  The walk then reads\nthe stale bytes at the tail of the buffer as option data, and a crafted\nsetsockopt(IP_OPTIONS) buffer can make it treat one of them as an option\nlength, increasing opt-\u003eopt.optlen beyond the valid option data.\n\nThe corrupted length stays on the socket and is later used as the copy\nlength by getsockopt(IP_OPTIONS) and by the udp/raw/ping sendmsg paths,\nwhere it exceeds the size of the buffers they copy into.\n\nCompute the new length from the intact options before the move and\nsubtract the CIPSO length, and fill the padding with IPOPT_END."
          }
        ],
        "id": "CVE-2026-99725",
        "lastModified": "2026-11-22T11:17:07.693",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "HIGH",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.0,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.0,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-20T06:18:09.480",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/0d9a6f9778ccd4401ded4ec9faf750b7b4a14ce7"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/1f1f8e8c5176234fa31858cd25f2e9b88aac0a45"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/4077bd2bcebf43922f84aa87f6839153212df509"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/699141380f7f249b7ee594198d9bea6bcd4862ea"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-24T23:22:15+00:00",
      "cve": "CVE-2026-99725",
      "id": "CVE-2026-99725",
      "initial_release_date": "2026-11-20T05:51:01.408000+00:00",
      "product_status:known_affected": "280",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via optlen corruption in cipso_v4_delopt",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99725.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "important",
      "current_release_date": "2026-11-25T00:59:46Z",
      "cve": "CVE-2026-99725",
      "id": "CVE-2026-99725",
      "initial_release_date": "2026-11-25T00:59:46Z",
      "product_status:known_affected": "351",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-99725",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-99725.json",
      "version": "2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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.

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.


Loading…