{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-64522",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-07-19T15:36:31.794Z",
        "datePublished": "2026-07-25T09:14:47.404Z",
        "dateUpdated": "2026-08-05T12:42:35.590Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T12:42:35.590Z"
            },
            "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->offloads.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": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                        "baseScore": 8.8,
                        "baseSeverity": "HIGH"
                    },
                    "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": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c"
                    ],
                    "versions": [
                        {
                            "version": "22239eb258bc1e6ccdb2d3502fce1cc2b2a88386",
                            "lessThan": "b5bd4249e430f5963d559708ee96a671716d2400",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "22239eb258bc1e6ccdb2d3502fce1cc2b2a88386",
                            "lessThan": "ecafd8284e527666e83261e6e57a7c7341d591cb",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "22239eb258bc1e6ccdb2d3502fce1cc2b2a88386",
                            "lessThan": "abe003b33223ff33552f291644bf35d9c2f992fb",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "993c4ba71596c30418ba5a0ddcf4f9c2f431466a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6.17.4",
                            "lessThan": "6.18",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c"
                    ],
                    "versions": [
                        {
                            "version": "6.18",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.18",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.34",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.0.11",
                            "lessThanOrEqual": "7.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.18",
                                    "versionEndExcluding": "6.18.34"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.18",
                                    "versionEndExcluding": "7.0.11"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.18",
                                    "versionEndExcluding": "7.1"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.17.4"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
            }
        }
    }
}