{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-98895",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.378Z",
        "datePublished": "2026-10-23T11:37:56.618Z",
        "dateUpdated": "2026-10-24T14:09:29.070Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-10-24T14:09:29.070Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: HWS, Handle destroying table that has a miss table\n\nIf a table has a miss table that was created by\n'mlx5hws_table_set_default_miss' API function, its miss_tbl\nkeeps the table that points to it in a list.\nIf such table is deleted, we need to also remove it from the\nmiss_tbl list, otherwise the node in miss_tbl list will contain\ngarbage."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - RTM_NEWTFILTER/RTM_DELTFILTER reaches tc_new_tfilter/tc_del_tfilter, mlx5e flower offload, mlx5_destroy_flow_table(), and the patched mlx5hws_table_destroy(); network packets only traverse installed rules and cannot create the stale list node.\nAC:H - mlx5_cmd_hws_destroy_flow_table() normally removes the miss link through mlx5_fs_set_ft_default_miss(NULL); the stale node requires its mlx5hws_cmd_flow_table_modify() disconnect to fail while destruction continues, a firmware/device condition the TC actor cannot reliably induce.\nPR:L - rtnetlink_rcv_msg() gates RTM_*TFILTER with netlink_net_capable(CAP_NET_ADMIN), which uses the socket network namespace's user_ns. CAP_NET_ADMIN in a delegated netns containing an mlx5 representor suffices; mlx5e_setup_tc_block_cb() adds no init-user-namespace check.\nUI:N - Once an HMFS switchdev device is configured, the TC actor can issue the filter deletion and subsequent table or matcher operation directly; no action by another user is required.\nS:U - The dangling mlx5hws_table is consumed within the host mlx5 driver and kernel allocator; exploitation affects the same kernel security authority rather than crossing a VM, IOMMU, or other scope boundary.\nC:H - mlx5hws_table_update_connected_miss_tables() treats the freed list entry as a live src_tbl and dereferences its ctx, matchers_list, IDs, and other pointers, giving a reclaim-and-spray attacker UAF-based kernel-memory read potential.\nI:H - list_add() can write a new-node pointer through the stale freed list entry, and mlx5hws_table_connect_to_miss_table() later writes src_tbl->default_miss.miss_tbl through that UAF; controlled slab reuse can convert these writes into exploitable heap corruption.\nA:H - Walking the freed default_miss.next entry and dereferencing a reclaimed src_tbl can corrupt list state or fault on bogus ctx and matcher pointers, causing a kernel 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/steering/hws/table.c"
                    ],
                    "versions": [
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "16b81428f7b5f253ab30a998bc4f4ecd1c8823f8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "6efdc212627cecf33b594256ae4460b4c52a126a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
                            "lessThan": "60e9e82f162ab7399373ff2185119289e4f6dc06",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.12.111",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.18.53",
                            "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/steering/hws/table.c"
                    ],
                    "versions": [
                        {
                            "version": "6.12.111",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.53",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.2",
                            "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:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "6.12.111"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "6.18.53"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "7.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/16b81428f7b5f253ab30a998bc4f4ecd1c8823f8"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6efdc212627cecf33b594256ae4460b4c52a126a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/60e9e82f162ab7399373ff2185119289e4f6dc06"
                }
            ],
            "title": "net/mlx5: HWS, Handle destroying table that has a miss table",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}