Skip to main content

Linux Kernel CVE-2026-72072

| EUVDEUVD-2026-59030 HIGH
2026-08-15 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-5679-rjmw-gc7q
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Share

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY
7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
7.0 HIGH

Race condition requires precise timing between SC deletion and concurrent RX datapath reader, justifying AC:H over the vendor-assigned AC:L; all other metrics align with description and CVSS PR:L.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE
7.0 HIGH
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat
7.0 MEDIUM
qualitative

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Generated
Aug 17, 2026 - 06:40 vuln.today
CVSS changed
Aug 17, 2026 - 06:22 NVD
7.8 (HIGH)
Patch available
Aug 15, 2026 - 07:20 EUVD
CVE Published
Aug 15, 2026 - 06:21 cve.org
HIGH 7.8
CVE Published
Aug 15, 2026 - 06:21 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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

net/mlx5e: macsec: fix use-after-free of metadata_dst on RX SC delete

When an offloaded MACsec RX SC is deleted, macsec_del_rxsc_ctx() freed the per-SC metadata_dst with metadata_dst_free(), which kfree()s the object unconditionally and ignores the dst reference count. The RX datapath in mlx5e_macsec_offload_handle_rx_skb() looks up the SC under rcu_read_lock() via xa_load(), takes a reference with dst_hold() and attaches the dst to the skb with skb_dst_set(). A reader that already obtained the rx_sc pointer can race with the delete path and operate on freed memory.

Fix the owner side by dropping the reference with dst_release() instead of freeing unconditionally, and convert the RX datapath to dst_hold_safe() so a reader racing the SC delete cannot attach a dst whose last reference was just dropped; only attach it when a reference was actually taken.

mlx5e_macsec_add_rxsc() also published sc_xarray_element via xa_alloc() before rx_sc->md_dst was allocated and initialised, so a datapath reader that looked the SC up by fs_id could observe rx_sc with md_dst still NULL or, on weakly-ordered architectures, a non-NULL md_dst pointer whose contents were not yet visible. NULL-check the xa_load() result and md_dst on the datapath, and reorder add_rxsc() so the xa_alloc() publish happens only after md_dst is fully initialised; the xarray RCU publish then pairs with the rcu_read_lock()/xa_load() in the datapath.

Note: macsec_del_rxsc_ctx() also kfree()s rx_sc->sc_xarray_element without an RCU grace period while the same datapath reads it under rcu_read_lock(); that is a separate pre-existing issue left to a follow-up patch.

Found by 0sec automated security-research tooling (https://0sec.ai).

AnalysisAI

Use-after-free and initialization-order race conditions in the Linux kernel's mlx5e MACsec hardware offload driver allow a local low-privileged user to corrupt kernel memory during RX Security Channel deletion. The delete path in macsec_del_rxsc_ctx() called metadata_dst_free() unconditionally, bypassing reference counting, while concurrent RX datapath readers operating under rcu_read_lock() could still hold and dereference the freed dst object. A secondary race in the add path published the SC's xarray entry before md_dst was fully initialized, allowing readers to observe NULL or partially-constructed pointers. Patches are available across multiple stable branches (6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2-rc2); no public exploit has been identified at time of analysis.

Technical ContextAI

The vulnerability resides in net/mlx5e, the driver for Mellanox/NVIDIA ConnectX-series NICs, specifically its MACsec (IEEE 802.1AE) hardware offload subsystem. MACsec provides authenticated link-layer encryption; the mlx5e driver accelerates this in NIC firmware via RX Security Channels (SCs) tracked in an XArray. Two interrelated races exist: (1) macsec_del_rxsc_ctx() called metadata_dst_free() - which unconditionally kfrees the dst object - while mlx5e_macsec_offload_handle_rx_skb() concurrently looked up the same SC via xa_load() under rcu_read_lock(), called dst_hold(), and attached it to an skb via skb_dst_set(), creating a classic use-after-free (CWE-416) window; (2) macsec_add_rxsc() called xa_alloc() to publish the SC in the xarray before rx_sc->md_dst was allocated and initialized, so a concurrent datapath reader could observe a NULL md_dst or, on weakly-ordered architectures, a non-NULL pointer whose backing memory was not yet visible. The fixes replace metadata_dst_free() with dst_release() (reference-counted), convert the datapath to dst_hold_safe() to fail gracefully on a zero-refcount dst, add NULL-checks on both xa_load() and md_dst in the datapath, and reorder xa_alloc() in the add path so publication occurs only after full md_dst initialization, establishing a proper RCU publish-subscribe pairing.

RemediationAI

The primary remediation is to upgrade to a patched kernel version: 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, or 7.2-rc2, depending on the deployed stable branch. Fix commits are available at git.kernel.org/stable/c/ for each branch (see references: 218cc15a, 4a5073b7, b1a4d0c5, de74d8fd, ed3cc421, 088873af). For systems where immediate kernel upgrade is not feasible, a targeted compensating control is to disable MACsec hardware offload on the affected NIC using 'ip link set <macsec-dev> type macsec offload off', which forces MACsec processing into software and removes the vulnerable mlx5e offload code path entirely; the trade-off is increased CPU overhead for MACsec packet processing. Restricting local user access on systems with mlx5e MACsec offload active (minimizing accounts with shell access) reduces the attack surface until patching is complete. Note that the description explicitly flags a separate pre-existing issue - kfree of rx_sc->sc_xarray_element without an RCU grace period - as unresolved in these patches; monitor for a follow-up fix.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

Share

CVE-2026-72072 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy