{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-98895",
  "modified": "2026-10-27T05:30:01Z",
  "upstream": [
    "CVE-2026-98895"
  ],
  "published": "2026-10-23T11:38:26Z",
  "summary": "net/mlx5: HWS, Handle destroying table that has a miss table",
  "details": "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.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-98895"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/6efdc212627cecf33b594256ae4460b4c52a126a"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/60e9e82f162ab7399373ff2185119289e4f6dc06"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-10-26T07:06:18Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.0,
      "cvss_v3_severity": "High",
      "scenario": "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."
    }
  }
}
