CVE-2026-143258 (GCVE-0-2026-143258)

Vulnerability from cvelistv5 – Published: 2026-12-03 09:21 – Updated: 2026-12-04 03:31
VLAI
Title
net/mlx5e: TC, Fix double free of branch in failure
Summary
In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: TC, Fix double free of branch in failure When allocating the false branch fails in parse_branch_ctrl(), the already allocated true branch is freed but attr->branch_true is left pointing to it. The caller parse_tc_actions() fails the flow, and free_flow_post_acts(), mlx5_free_flow_attr_actions() which calls again free_branch_attr() on attr->branch_true. Clear the pointer after freeing it. This bug is theoretical and was compile tested only.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8648 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: f86488cb4685bbb885057afa0b61bb8afc1d6bb1 , < 4dfba871c220c3581dada988f6ba57104163111c (git)
Affected: f86488cb4685bbb885057afa0b61bb8afc1d6bb1 , < 46296baedd20ca100cdc2260415d02a65596e76d (git)
Affected: f86488cb4685bbb885057afa0b61bb8afc1d6bb1 , < 014272105371b140affcee740039cb5f6dc63baa (git)
Affected: f86488cb4685bbb885057afa0b61bb8afc1d6bb1 , < 31f9b43a3bb3d2201eadd147440252d0912dab21 (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.2
Unaffected: 0 , < 6.2 (semver)
Unaffected: 6.12.120 , ≤ 6.12.* (semver)
Unaffected: 6.18.66 , ≤ 6.18.* (semver)
Unaffected: 7.3.7 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc3 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mellanox/mlx5/core/en_tc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "4dfba871c220c3581dada988f6ba57104163111c",
              "status": "affected",
              "version": "f86488cb4685bbb885057afa0b61bb8afc1d6bb1",
              "versionType": "git"
            },
            {
              "lessThan": "46296baedd20ca100cdc2260415d02a65596e76d",
              "status": "affected",
              "version": "f86488cb4685bbb885057afa0b61bb8afc1d6bb1",
              "versionType": "git"
            },
            {
              "lessThan": "014272105371b140affcee740039cb5f6dc63baa",
              "status": "affected",
              "version": "f86488cb4685bbb885057afa0b61bb8afc1d6bb1",
              "versionType": "git"
            },
            {
              "lessThan": "31f9b43a3bb3d2201eadd147440252d0912dab21",
              "status": "affected",
              "version": "f86488cb4685bbb885057afa0b61bb8afc1d6bb1",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mellanox/mlx5/core/en_tc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.2"
            },
            {
              "lessThan": "6.2",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.120",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.66",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.7",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.120",
                  "versionStartIncluding": "6.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.66",
                  "versionStartIncluding": "6.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.7",
                  "versionStartIncluding": "6.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc3",
                  "versionStartIncluding": "6.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: TC, Fix double free of branch in failure\n\nWhen allocating the false branch fails in parse_branch_ctrl(), the\nalready allocated true branch is freed but attr-\u003ebranch_true is left\npointing to it. The caller parse_tc_actions() fails the flow, and\nfree_flow_post_acts(), mlx5_free_flow_attr_actions() which calls again\nfree_branch_attr() on attr-\u003ebranch_true.\n\nClear the pointer after freeing it.\n\nThis bug is theoretical and was compile tested only."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The attacker-controlled notexceed and exceed act_ids arrive in RTM_NEWTFILTER, are copied by tcf_police_offload_act_setup() into flow_action_entry.police, and reach parse_branch_ctrl() via tc_new_tfilter(), mlx5e_rep_setup_tc_cb(), mlx5e_configure_flower(), and parse_tc_fdb_actions().\nAC:L - The attacker sets both police branches to FLOW_ACTION_JUMP with a non-zero extval. alloc_branch_attr() stores that extval from the true branch and then rejects the false branch as a nested jump (-EOPNOTSUPP) on every such filter, once tc_act_can_offload_police() has passed because mlx5e_get_flow_meters() is non-NULL in switchdev.\nPR:L - rtnetlink_rcv_msg() requires netlink_net_capable(CAP_NET_ADMIN) for RTM_NEWTFILTER, checking the socket netns user namespace. mlx5e_rep_setup_tc_cb() adds no init_user_ns check, so CAP_NET_ADMIN in a user namespace that owns the mlx5 switchdev representor is sufficient.\nUI:N - The attacker sends the flower police filter in one RTM_NEWTFILTER; parse_branch_ctrl() fails and mlx5e_tc_del_fdb_flow() double-frees inside that same call.\nS:U - The freed object is a branch mlx5_flow_attr allocated by mlx5_alloc_flow_attr() and released by free_branch_attr() inside the host mlx5 driver. The corruption stays in that kernel security authority.\nC:H - parse_branch_ctrl() free_branch_attr()s the true branch and, before the fix, leaves attr-\u003ebranch_true set. mlx5e_tc_del_fdb_flow() then mlx5_free_flow_attr_actions() calls free_branch_attr() again, which reads action, parse_attr, and branch pointers from the freed object. Slab reuse of that mlx5_flow_attr yields a kernel read primitive.\nI:H - The second free_branch_attr() kvfree()s the branch\u0027s parse_attr and kfree()s the mlx5_flow_attr a second time. If the slab slot was reallocated, those frees release attacker-controlled pointers and corrupt freelist metadata, giving a write and control-flow primitive.\nA:H - The double kfree of the branch mlx5_flow_attr in free_branch_attr(), invoked from mlx5e_tc_del_fdb_flow() on the nested-jump error path, corrupts the slab freelist and oopses the kernel."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-04T03:31:54.691Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/4dfba871c220c3581dada988f6ba57104163111c"
        },
        {
          "url": "https://git.kernel.org/stable/c/46296baedd20ca100cdc2260415d02a65596e76d"
        },
        {
          "url": "https://git.kernel.org/stable/c/014272105371b140affcee740039cb5f6dc63baa"
        },
        {
          "url": "https://git.kernel.org/stable/c/31f9b43a3bb3d2201eadd147440252d0912dab21"
        }
      ],
      "title": "net/mlx5e: TC, Fix double free of branch in failure",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-143258",
    "datePublished": "2026-12-03T09:21:04.667Z",
    "dateReserved": "2026-12-03T03:10:28.363Z",
    "dateUpdated": "2026-12-04T03:31:54.691Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-143258",
      "date": "2026-12-04",
      "epss": "0.00175",
      "percentile": "0.07294"
    },
    "microsoft_vex": {
      "current_release_date": "2026-12-04T01:14:16.000Z",
      "cve": "CVE-2026-143258",
      "id": "msrc_CVE-2026-143258",
      "initial_release_date": "2026-12-03T18:54:17.000Z",
      "product_status:known_affected": "1",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "net/mlx5e: TC, Fix double free of branch in failure",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-143258.json",
      "version": "2"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/net/ethernet/mellanox/mlx5/core/en_tc.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "4dfba871c220c3581dada988f6ba57104163111c",
                    "status": "affected",
                    "version": "f86488cb4685bbb885057afa0b61bb8afc1d6bb1",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "46296baedd20ca100cdc2260415d02a65596e76d",
                    "status": "affected",
                    "version": "f86488cb4685bbb885057afa0b61bb8afc1d6bb1",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "014272105371b140affcee740039cb5f6dc63baa",
                    "status": "affected",
                    "version": "f86488cb4685bbb885057afa0b61bb8afc1d6bb1",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "31f9b43a3bb3d2201eadd147440252d0912dab21",
                    "status": "affected",
                    "version": "f86488cb4685bbb885057afa0b61bb8afc1d6bb1",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/net/ethernet/mellanox/mlx5/core/en_tc.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.2"
                  },
                  {
                    "lessThan": "6.2",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.120",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.66",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.7",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc3",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: TC, Fix double free of branch in failure\n\nWhen allocating the false branch fails in parse_branch_ctrl(), the\nalready allocated true branch is freed but attr-\u003ebranch_true is left\npointing to it. The caller parse_tc_actions() fails the flow, and\nfree_flow_post_acts(), mlx5_free_flow_attr_actions() which calls again\nfree_branch_attr() on attr-\u003ebranch_true.\n\nClear the pointer after freeing it.\n\nThis bug is theoretical and was compile tested only."
          }
        ],
        "id": "CVE-2026-143258",
        "lastModified": "2026-12-04T04:17:45.947",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-12-03T10:18:05.947",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/014272105371b140affcee740039cb5f6dc63baa"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/31f9b43a3bb3d2201eadd147440252d0912dab21"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/46296baedd20ca100cdc2260415d02a65596e76d"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/4dfba871c220c3581dada988f6ba57104163111c"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-12-04T04:17:50+00:00",
      "cve": "CVE-2026-143258",
      "id": "CVE-2026-143258",
      "initial_release_date": "2026-12-03T09:21:04.667000+00:00",
      "product_status:known_affected": "251",
      "product_status:known_not_affected": "29",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via double free in mlx5e driver",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-143258.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.