AZL-118637: CVE-2026-143349 affecting package kernel 6.6.161.1-1

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5: macsec: free struct mlx5fsid after an RCU grace period

macsecfsiddel() removes a struct mlx5fsid from its rhashtable with rhashtableremovefast() and then frees it with kfree() right away.

The TX (SCI) table is read locklessly from the transmit path: mlx5emacsechandletxskb() and mlx5emacsectxbuildeseg() call mlx5macsecfsgetfsidfromhashtable(), which does rhashtablelookup() under rcureadlock() and then reads mlx5fsid->id. A transmit that looked the entry up just before it was removed reads freed memory.

Before commit d4ece08f4b1d ("net/mlx5: Maintain fsid xarray per MACsec device inside macsec steering") the SCI table held struct mlx5emacsecsa directly, and mlx5emacsecdeltxsa() freed it with kfreercumightsleep(). That commit moved the table into macsecfs.c with the new struct mlx5fsid, but frees it with a plain kfree().

Add an rcuhead to struct mlx5fsid and free it with kfreercu().

The same issue was flagged by the Sashiko AI review as a pre-existing problem while reviewing the HW-GRO for PSP series.

Affected Software

1 affected component
azure-linux/kernel<=6.6.161.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the mlx5 MACsec code, add an rcu_head to struct mlx5_fs_id and free the structure with kfree_rcu() so lockless transmit-path readers cannot access freed memory.

Event History

Dec 3, 2026
Advisory Published
via OSV·10:18 AM
Data Sourced
via OSV·10:18 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What conditions are required for this issue to occur?

The system must be using mlx5 MACsec transmit handling, with a transmit SCI table entry being removed while transmit traffic concurrently performs a lockless lookup of that entry. The race can cause the transmit path to read a struct mlx5_fs_id after it has been freed.

2

Is the receive path implicated?

The described race is in the MACsec transmit path, specifically TX SCI-table lookups used by mlx5e_macsec_handle_tx_skb() and mlx5e_macsec_tx_build_eseg(). The provided information does not identify a receive-path issue.

3

What code change resolves the lifetime problem?

The resolved implementation adds an rcu_head to struct mlx5_fs_id and defers freeing it with kfree_rcu() after removal from the rhashtable. This allows readers already holding an RCU read lock to finish before the object is released.

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