CVE-2026-72072
net/mlx5e: macsec: fix use-after-free of metadata_dst on RX SC delete
Reported by linux · Published August 15, 2026
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).
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.18-headers | Amazon Linux | 1:6.18.41-94.142.amzn2023 |
| kernel | errata.rockylinux.org | 5.14.0-687.50.1.el9 |
| kernel-debug-devel | errata.rockylinux.org | 5.14.0-687.50.1.el9 |
| kernel-debuginfo-common-aarch64 | errata.rockylinux.org | 5.14.0-687.50.1.el9 |
| kernel-rt-debug-devel | errata.rockylinux.org | 5.14.0-687.50.1.el9 |
| kernel-core | errata.rockylinux.org | 5.14.0-687.50.1.el9 |
| kernel-modules-extra | errata.rockylinux.org | 5.14.0-687.50.1.el9 |
| kernel-rt-64k-debug-debuginfo | errata.rockylinux.org | 5.14.0-687.50.1.el9 |
| rtla | errata.rockylinux.org | 5.14.0-687.50.1.el9 |
| python3-perf | errata.rockylinux.org | 5.14.0-687.50.1.el9 |
| kernel-debug-modules-core | errata.rockylinux.org | 5.14.0-687.50.1.el9 |
| kernel-64k-core | errata.rockylinux.org | 5.14.0-687.50.1.el9 |
62 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b7c9400cbc48c3713190b3bce4e0c87e924e4104, b7c9400cbc48c3713190b3bce4e0c87e924e4104, b7c9400cbc48c3713190b3bce4e0c87e924e4104 |
| Linux | Linux | 6.1, 0, 6.1.178 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-livepatch-6.18.41-94.142 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
…and 18 more
Timeline
- Aug 15, 2026 Coalition ESS Score
- Aug 15, 2026 CVE Published
- Aug 19, 2026 Security Advisory
- Aug 24, 2026 EPSS Score (13 in total, the first dated here)
- Oct 7, 2026 Distribution Patch
- Oct 19, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-72072
vulnetix vdb fixes CVE-2026-72072
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-72072/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart