CVE-2026-143258: net/mlx5e: TC, Fix double free of branch in failure

Published Dec 3, 2026
·
Updated

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 parsebranchctrl(), the already allocated true branch is freed but attr->branchtrue is left pointing to it. The caller parsetcactions() fails the flow, and freeflowpostacts(), mlx5freeflowattractions() which calls again freebranchattr() on attr->branchtrue.

Clear the pointer after freeing it.

This bug is theoretical and was compile tested only.

Affected Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.2.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7
  4. Compensating control

    In parse_branch_ctrl(), clear attr->branch_true after freeing the allocated true branch so later cleanup does not free it again.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:21 AM
Data Sourced
via MITRE·09:21 AM
Description
Data Sourced
via OSV·09:21 AM
DescriptionAffected Software
Data Sourced
via NVD·10:18 AM
Description

Frequently Asked Questions

1

Under what condition can the double free occur?

It requires allocation of the false branch in parse_branch_ctrl() to fail after the true branch has already been allocated. The stale attr->branch_true pointer is then freed again during flow cleanup.

2

Is this known to be exploitable in practice?

The issue is described as theoretical and compile tested only. The provided information does not identify a demonstrated exploitation path or affected default configuration.

3

How can I determine whether a system includes the fix?

Check whether the kernel source or applied stable patches include the change that clears attr->branch_true after freeing the true branch when false-branch allocation fails. The provided references identify commits containing the fix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203