CVE-2026-64522 (GCVE-0-2026-64522)
Vulnerability from cvelistv5
Published
2026-07-25 09:14
Modified
2026-10-19 20:48
Summary
In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix eswitch mode block underflow on IPsec acquire SA mlx5e_xfrm_add_state() handles acquire-flow temporary SAs by allocating software state and skipping hardware offload setup. That path jumps to the common success label before taking the eswitch mode block. After tunnel-mode validation was moved earlier, the common success label unconditionally calls mlx5_eswitch_unblock_mode(). For acquire SAs, this decrements esw->offloads.num_block_mode without a matching increment. Return directly after installing the acquire SA offload handle, so only the paths that successfully called mlx5_eswitch_block_mode() call the matching unblock.
Impacted products
Vendor Product Version
Linux Linux Version: 22239eb258bc1e6ccdb2d3502fce1cc2b2a88386
Version: 22239eb258bc1e6ccdb2d3502fce1cc2b2a88386
Version: 22239eb258bc1e6ccdb2d3502fce1cc2b2a88386
Version: 993c4ba71596c30418ba5a0ddcf4f9c2f431466a
Version: 6.17.4   ≤
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2026-64522",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-10-16T15:41:33.468596Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-190",
                "description": "CWE-190 Integer Overflow or Wraparound",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-10-19T20:48:37.735Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "b5bd4249e430f5963d559708ee96a671716d2400",
              "status": "affected",
              "version": "22239eb258bc1e6ccdb2d3502fce1cc2b2a88386",
              "versionType": "git"
            },
            {
              "lessThan": "ecafd8284e527666e83261e6e57a7c7341d591cb",
              "status": "affected",
              "version": "22239eb258bc1e6ccdb2d3502fce1cc2b2a88386",
              "versionType": "git"
            },
            {
              "lessThan": "abe003b33223ff33552f291644bf35d9c2f992fb",
              "status": "affected",
              "version": "22239eb258bc1e6ccdb2d3502fce1cc2b2a88386",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "993c4ba71596c30418ba5a0ddcf4f9c2f431466a",
              "versionType": "git"
            },
            {
              "lessThan": "6.18",
              "status": "affected",
              "version": "6.17.4",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.18"
            },
            {
              "lessThan": "6.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.34",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.11",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.34",
                  "versionStartIncluding": "6.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.11",
                  "versionStartIncluding": "6.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "6.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.17.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: Fix eswitch mode block underflow on IPsec acquire SA\n\nmlx5e_xfrm_add_state() handles acquire-flow temporary SAs by allocating\nsoftware state and skipping hardware offload setup.\n\nThat path jumps to the common success label before taking the eswitch mode\nblock. After tunnel-mode validation was moved earlier, the common success\nlabel unconditionally calls mlx5_eswitch_unblock_mode(). For acquire SAs,\nthis decrements esw-\u003eoffloads.num_block_mode without a matching increment.\n\nReturn directly after installing the acquire SA offload handle, so only the\npaths that successfully called mlx5_eswitch_block_mode() call the matching\nunblock."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - A remote TCP SYN can cause the kernel to route a SYN-ACK through an administrator-configured outbound mlx5 IPsec policy, reaching xfrm_state_find() and the vulnerable acquire-SA callback.\nAC:L - Once the affected packet-offload policy is deployed without a matching SA, the first matching flow deterministically performs the unmatched decrement; no race must be won.\nPR:N - The remote peer needs no credentials or capabilities; configuring the mlx5 IPsec policy is a deployment prerequisite, not an attacker privilege.\nUI:R - The highest-impact stale-object path requires an administrator to request an eswitch mode transition after the attacker has cancelled the live mode-block reference.\nS:U - The resulting corruption affects the same host kernel and mlx5 device security authority, without crossing a VM, IOMMU, or sandbox boundary.\nC:H - The incorrectly permitted mode transition frees mlx5 IPsec structures while XFRM policies retain references to them, creating subsequent use-after-free callbacks capable of exposing kernel memory.\nI:H - The stale policy and flow-table references can be reclaimed and attacker-influenced, making the resulting kernel use-after-free potentially exploitable for arbitrary writes or control-flow hijacking.\nA:H - Mode-transition teardown or later automatic policy expiration can dereference freed IPsec and flow-rule objects, causing a kernel warning, oops, or panic."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T12:42:35.590Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/b5bd4249e430f5963d559708ee96a671716d2400"
        },
        {
          "url": "https://git.kernel.org/stable/c/ecafd8284e527666e83261e6e57a7c7341d591cb"
        },
        {
          "url": "https://git.kernel.org/stable/c/abe003b33223ff33552f291644bf35d9c2f992fb"
        }
      ],
      "title": "net/mlx5e: Fix eswitch mode block underflow on IPsec acquire SA",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-64522",
    "datePublished": "2026-07-25T09:14:47.404Z",
    "dateReserved": "2026-07-19T15:36:31.794Z",
    "dateUpdated": "2026-10-19T20:48:37.735Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2026-64522\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-10-16T15:41:33.468596Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-10-16T15:41:34.439Z\"}}], \"cna\": {\"title\": \"net/mlx5e: Fix eswitch mode block underflow on IPsec acquire SA\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 8.8, \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:N - A remote TCP SYN can cause the kernel to route a SYN-ACK through an administrator-configured outbound mlx5 IPsec policy, reaching xfrm_state_find() and the vulnerable acquire-SA callback.\\nAC:L - Once the affected packet-offload policy is deployed without a matching SA, the first matching flow deterministically performs the unmatched decrement; no race must be won.\\nPR:N - The remote peer needs no credentials or capabilities; configuring the mlx5 IPsec policy is a deployment prerequisite, not an attacker privilege.\\nUI:R - The highest-impact stale-object path requires an administrator to request an eswitch mode transition after the attacker has cancelled the live mode-block reference.\\nS:U - The resulting corruption affects the same host kernel and mlx5 device security authority, without crossing a VM, IOMMU, or sandbox boundary.\\nC:H - The incorrectly permitted mode transition frees mlx5 IPsec structures while XFRM policies retain references to them, creating subsequent use-after-free callbacks capable of exposing kernel memory.\\nI:H - The stale policy and flow-table references can be reclaimed and attacker-influenced, making the resulting kernel use-after-free potentially exploitable for arbitrary writes or control-flow hijacking.\\nA:H - Mode-transition teardown or later automatic policy expiration can dereference freed IPsec and flow-rule objects, causing a kernel warning, oops, or panic.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"22239eb258bc1e6ccdb2d3502fce1cc2b2a88386\", \"lessThan\": \"b5bd4249e430f5963d559708ee96a671716d2400\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"22239eb258bc1e6ccdb2d3502fce1cc2b2a88386\", \"lessThan\": \"ecafd8284e527666e83261e6e57a7c7341d591cb\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"22239eb258bc1e6ccdb2d3502fce1cc2b2a88386\", \"lessThan\": \"abe003b33223ff33552f291644bf35d9c2f992fb\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"993c4ba71596c30418ba5a0ddcf4f9c2f431466a\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"6.17.4\", \"lessThan\": \"6.18\", \"versionType\": \"semver\"}], \"programFiles\": [\"drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.18\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.18\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.18.34\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.18.*\"}, {\"status\": \"unaffected\", \"version\": \"7.0.11\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"7.0.*\"}, {\"status\": \"unaffected\", \"version\": \"7.1\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/b5bd4249e430f5963d559708ee96a671716d2400\"}, {\"url\": \"https://git.kernel.org/stable/c/ecafd8284e527666e83261e6e57a7c7341d591cb\"}, {\"url\": \"https://git.kernel.org/stable/c/abe003b33223ff33552f291644bf35d9c2f992fb\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet/mlx5e: Fix eswitch mode block underflow on IPsec acquire SA\\n\\nmlx5e_xfrm_add_state() handles acquire-flow temporary SAs by allocating\\nsoftware state and skipping hardware offload setup.\\n\\nThat path jumps to the common success label before taking the eswitch mode\\nblock. After tunnel-mode validation was moved earlier, the common success\\nlabel unconditionally calls mlx5_eswitch_unblock_mode(). For acquire SAs,\\nthis decrements esw-\u003eoffloads.num_block_mode without a matching increment.\\n\\nReturn directly after installing the acquire SA offload handle, so only the\\npaths that successfully called mlx5_eswitch_block_mode() call the matching\\nunblock.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.18.34\", \"versionStartIncluding\": \"6.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"7.0.11\", \"versionStartIncluding\": \"6.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"7.1\", \"versionStartIncluding\": \"6.18\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionStartIncluding\": \"6.17.4\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T12:42:35.590Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2026-64522\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-10-16T15:42:39.098Z\", \"dateReserved\": \"2026-07-19T15:36:31.794Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2026-07-25T09:14:47.404Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…