{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-98497",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.353Z",
        "datePublished": "2026-10-18T15:16:28.852Z",
        "dateUpdated": "2026-10-24T14:09:07.181Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-10-24T14:09:07.181Z"
            },
            "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": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.5,
                        "baseSeverity": "HIGH"
                    },
                    "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() -> xfrm_dev_policy_add() -> mlx5e_xfrm_add_policy() -> mlx5e_accel_ipsec_fs_add_pol() -> 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->ft.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's 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."
                        }
                    ]
                }
            ],
            "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_fs.c"
                    ],
                    "versions": [
                        {
                            "version": "ca7992f52c2cb5ef61fbfa590a2d7c926f290237",
                            "lessThan": "3803dc8477f08e0dac4050cafee0de43f32727be",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ca7992f52c2cb5ef61fbfa590a2d7c926f290237",
                            "lessThan": "e73f832f0a7b2c6ea45b2124c732d639be97b547",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ca7992f52c2cb5ef61fbfa590a2d7c926f290237",
                            "lessThan": "10de7ed8ef4840da9ca21de4c29578657ac367db",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "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_fs.c"
                    ],
                    "versions": [
                        {
                            "version": "6.15",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.15",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.55",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.2.9",
                            "lessThanOrEqual": "7.2.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3",
                            "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.15",
                                    "versionEndExcluding": "6.18.55"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.15",
                                    "versionEndExcluding": "7.2.9"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.15",
                                    "versionEndExcluding": "7.3"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
            }
        }
    }
}