AZL-118343: CVE-2026-143208 affecting package kernel 6.6.161.1-1

Published Dec 3, 2026
·
Updated

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

net/mlx5e: Fix ipsec core device access during profile changes

Devlink E-Switch mode changes replace the netdev profile without unregistering the netdev. XFRM state and policy creation can therefore run while mlx5eprivcleanup() clears priv with memset() or mlx5eprivinit() initializes it again. Accesses to priv->mdev can observe NULL or a torn pointer, and repeated loads may return different values.

Read priv->mdev once in each add callback and use the saved pointer throughout the callback, including error unwinding. The core device survives the in-place profile change, so a saved non-NULL pointer remains valid even if priv is cleared in the meantime.

A NULL priv->mdev means a profile change is in progress, which only happens during an eswitch mode change. Return -EBUSY in that case, as mlx5eswitchblockmode() does for the same mode change. -EOPNOTSUPP would make xfrmdevstateadd() silently fall back to software for a crypto offload SA for its whole lifetime.

Use WRITEONCE() when initializing priv->mdev and when clearing it before memset(). This makes the transition to NULL atomic; the subsequent bulk clear only writes zero bytes over an already NULL pointer. Annotate the READONCE() snapshots with datarace() to allow that harmless overlap with the unmarked memset() without suppressing checks for the rest of priv.

This fixes the core-device pointer accesses. Protecting the IPsec context itself during state and policy creation is handled separately.

This was found by Sashiko, during review of the next patches in the series. No attempt was made at reproducing this race, the chances seem vanishingly small.

Affected Software

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

Event History

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

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What conditions are required for this issue to occur?

The race requires an NVIDIA/Mellanox mlx5e device undergoing a Devlink E-Switch mode change while XFRM/IPsec state or policy creation is running. The affected paths are the mlx5e IPsec offload add callbacks, where the netdev profile can be replaced without unregistering the netdev.

2

Are systems using software IPsec affected in the same way?

The described issue concerns crypto offload SAs handled through mlx5e IPsec offload callbacks. During the profile-change window, returning -EOPNOTSUPP could cause XFRM to fall back to software for the lifetime of an offload SA; the fix instead returns -EBUSY while the mode change is in progress.

3

How can I tell whether a system is in the vulnerable operating scenario?

Look for systems using mlx5e hardware IPsec/XFRM offload and performing Devlink E-Switch mode changes. The relevant exposure exists when IPsec XFRM states or policies may be created concurrently with those mode changes.

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