CVE-2026-98497 (GCVE-0-2026-98497)

Vulnerability from cvelistv5 – Published: 2026-10-18 15:16 – Updated: 2026-10-24 14:09
VLAI
Title
net/mlx5e: fix swapped IPv6 IPsec policy masks
Summary
In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: fix swapped IPv6 IPsec policy masks IPv6 XFRM policies may use different source and destination prefix lengths. mlx5e_ipsec_policy_mask() builds the corresponding masks independently, but setup_fte_addr6() installs each mask in the opposite address field. When the prefix lengths differ, this makes the source match use the destination prefix and the destination match use the source prefix. The resulting hardware rule can both miss traffic covered by the policy and match traffic outside it. Install each mask in its corresponding match field.
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: ca7992f52c2cb5ef61fbfa590a2d7c926f290237 , < 3803dc8477f08e0dac4050cafee0de43f32727be (git)
Affected: ca7992f52c2cb5ef61fbfa590a2d7c926f290237 , < e73f832f0a7b2c6ea45b2124c732d639be97b547 (git)
Affected: ca7992f52c2cb5ef61fbfa590a2d7c926f290237 , < 10de7ed8ef4840da9ca21de4c29578657ac367db (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.15
Unaffected: 0 , < 6.15 (semver)
Unaffected: 6.18.55 , ≤ 6.18.* (semver)
Unaffected: 7.2.9 , ≤ 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": [
            "drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3803dc8477f08e0dac4050cafee0de43f32727be",
              "status": "affected",
              "version": "ca7992f52c2cb5ef61fbfa590a2d7c926f290237",
              "versionType": "git"
            },
            {
              "lessThan": "e73f832f0a7b2c6ea45b2124c732d639be97b547",
              "status": "affected",
              "version": "ca7992f52c2cb5ef61fbfa590a2d7c926f290237",
              "versionType": "git"
            },
            {
              "lessThan": "10de7ed8ef4840da9ca21de4c29578657ac367db",
              "status": "affected",
              "version": "ca7992f52c2cb5ef61fbfa590a2d7c926f290237",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.15"
            },
            {
              "lessThan": "6.15",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.55",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.9",
              "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": "6.18.55",
                  "versionStartIncluding": "6.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.9",
                  "versionStartIncluding": "6.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "6.15",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: fix swapped IPv6 IPsec policy masks\n\nIPv6 XFRM policies may use different source and destination prefix\nlengths. mlx5e_ipsec_policy_mask() builds the corresponding masks\nindependently, but setup_fte_addr6() installs each mask in the opposite\naddress field.\n\nWhen the prefix lengths differ, this makes the source match use the\ndestination prefix and the destination match use the source prefix. The\nresulting hardware rule can both miss traffic covered by the policy and\nmatch traffic outside it.\n\nInstall each mask in its corresponding match field."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - Routable ESP packets carry the decrypted inner IPv6 addresses compared by the FTE built in setup_fte_addr6(); it is installed through xfrm_add_policy() -\u003e xfrm_dev_policy_add() -\u003e mlx5e_xfrm_add_policy() -\u003e mlx5e_accel_ipsec_fs_add_pol() -\u003e rx_add_policy()/tx_add_policy().\nAC:H - Exploitation requires mlx5 full-packet offload and an administrator-installed IPv6 XFRM policy with unequal source and destination prefixes, which the remote peer cannot create; once present, chosen inner addresses deterministically exercise the swapped masks.\nPR:L - ipsec_rx_status_pass_create() forwards packets to rx-\u003eft.pol only after successful hardware authentication status, while failures reach the drop-all rule. The attacker therefore needs a valid IPsec SA/key but no target-side administrative capability.\nUI:N - After mlx5e_xfrm_add_policy() installs the faulty FTE, the peer triggers incorrect matching solely by sending ESP traffic with selected inner IPv6 addresses; no further victim action is required.\nS:U - The FTE programmed by setup_fte_addr6() misapplies XFRM policy within the same host kernel and mlx5 networking authority; it does not cross a VM, IOMMU, or other security scope.\nC:H - tx_add_policy() uses an ALLOW match to write the reqid selecting an SA; a broadened false-positive can encrypt unrelated IPv6 flows to the peer\u0027s SA, allowing it to decrypt payloads outside its intended policy prefix.\nI:H - rx_add_policy() forwards an ALLOW match toward the normal receive destination. A broadened false-positive lets an authenticated peer inject inner IPv6 packets outside the authorized source or destination prefix into the protected network.\nA:H - tx_add_policy() and rx_add_policy() encode XFRM_POLICY_BLOCK as hardware DROP; a broadened match can discard outside-policy flows, while a narrowed ALLOW match can prevent all intended selector traffic from reaching the proper policy or SA."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-24T14:09:07.181Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/3803dc8477f08e0dac4050cafee0de43f32727be"
        },
        {
          "url": "https://git.kernel.org/stable/c/e73f832f0a7b2c6ea45b2124c732d639be97b547"
        },
        {
          "url": "https://git.kernel.org/stable/c/10de7ed8ef4840da9ca21de4c29578657ac367db"
        }
      ],
      "title": "net/mlx5e: fix swapped IPv6 IPsec policy masks",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-98497",
    "datePublished": "2026-10-18T15:16:28.852Z",
    "dateReserved": "2026-09-25T10:25:14.353Z",
    "dateUpdated": "2026-10-24T14:09:07.181Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-98497",
      "date": "2026-10-25",
      "epss": "0.00459",
      "percentile": "0.39512"
    },
    "microsoft_vex": {
      "current_release_date": "2026-10-21T18:35:51.000Z",
      "cve": "CVE-2026-98497",
      "id": "msrc_CVE-2026-98497",
      "initial_release_date": "2026-10-20T22:24:09.000Z",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "net/mlx5e: fix swapped IPv6 IPsec policy masks",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-98497.json",
      "version": "2"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "3803dc8477f08e0dac4050cafee0de43f32727be",
                    "status": "affected",
                    "version": "ca7992f52c2cb5ef61fbfa590a2d7c926f290237",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e73f832f0a7b2c6ea45b2124c732d639be97b547",
                    "status": "affected",
                    "version": "ca7992f52c2cb5ef61fbfa590a2d7c926f290237",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "10de7ed8ef4840da9ca21de4c29578657ac367db",
                    "status": "affected",
                    "version": "ca7992f52c2cb5ef61fbfa590a2d7c926f290237",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.15"
                  },
                  {
                    "lessThan": "6.15",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.55",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.2.*",
                    "status": "unaffected",
                    "version": "7.2.9",
                    "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\nnet/mlx5e: fix swapped IPv6 IPsec policy masks\n\nIPv6 XFRM policies may use different source and destination prefix\nlengths. mlx5e_ipsec_policy_mask() builds the corresponding masks\nindependently, but setup_fte_addr6() installs each mask in the opposite\naddress field.\n\nWhen the prefix lengths differ, this makes the source match use the\ndestination prefix and the destination match use the source prefix. The\nresulting hardware rule can both miss traffic covered by the policy and\nmatch traffic outside it.\n\nInstall each mask in its corresponding match field."
          }
        ],
        "id": "CVE-2026-98497",
        "lastModified": "2026-10-24T14:16:44.467",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "HIGH",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.6,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-10-18T16:17:00.697",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/10de7ed8ef4840da9ca21de4c29578657ac367db"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/3803dc8477f08e0dac4050cafee0de43f32727be"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e73f832f0a7b2c6ea45b2124c732d639be97b547"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-10-24T14:23:18+00:00",
      "cve": "CVE-2026-98497",
      "id": "CVE-2026-98497",
      "initial_release_date": "2026-10-18T00:00:00+00:00",
      "product_status:known_affected": "199",
      "product_status:known_not_affected": "79",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: net/mlx5e: fix swapped IPv6 IPsec policy masks",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98497.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-10-22T23:47:46Z",
      "cve": "CVE-2026-98497",
      "id": "CVE-2026-98497",
      "initial_release_date": "2026-10-22T23:47:46Z",
      "product_status:known_affected": "0",
      "product_status:known_not_affected": "348",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-98497",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-98497.json",
      "version": "2"
    }
  }
}



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.