# CVE-2026-72072: net/mlx5e: macsec: fix use-after-free of metadata\_dst on RX SC delete

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-08-15T05:52:23.946Z
- **Modified:** 2026-10-19T22:17:25.913Z

## Who should check

- Anyone running Linux \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< b1a4d0c568bbb52c7c04f4fce3c097dae89ed6cb; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< 218cc15a4c907659ad4b0e68c535c61594311205; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< 4a5073b7b30243658f58b2d2d35a823da7fd34d9; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< ed3cc4218070d6b98bf5fb456dccae424fd38c4f; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< 088873af13590ebde10de2ade847f57a05ec61c6; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< de74d8fd10291763d97b218f09adcc7513c975e4
- Anyone running Linux 6.1

## Description

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).

## Affected and fixed versions

- Linux: \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< b1a4d0c568bbb52c7c04f4fce3c097dae89ed6cb; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< 218cc15a4c907659ad4b0e68c535c61594311205; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< 4a5073b7b30243658f58b2d2d35a823da7fd34d9; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< ed3cc4218070d6b98bf5fb456dccae424fd38c4f; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< 088873af13590ebde10de2ade847f57a05ec61c6; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< de74d8fd10291763d97b218f09adcc7513c975e4 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-72072. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-72072.md
Affected: Linux >= b7c9400cbc48c3713190b3bce4e0c87e924e4104, < b1a4d0c568bbb52c7c04f4fce3c097dae89ed6cb; >= b7c9400cbc48c3713190b3bce4e0c87e924e4104, < 218cc15a4c907659ad4b0e68c535c61594311205; >= b7c9400cbc48c3713190b3bce4e0c87e924e4104, < 4a5073b7b30243658f58b2d2d35a823da7fd34d9; >= b7c9400cbc48c3713190b3b…
Fixed in: Linux 218cc15a4c907659ad4b0e68c535c61594311205, Linux 4a5073b7b30243658f58b2d2d35a823da7fd34d9, Linux 088873af13590ebde10de2ade847f57a05ec61c6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-72072 being exploited?

There is no confirmed exploitation: CVE-2026-72072 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-72072?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-72072?

Linux \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< b1a4d0c568bbb52c7c04f4fce3c097dae89ed6cb; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< 218cc15a4c907659ad4b0e68c535c61594311205; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< 4a5073b7b30243658f58b2d2d35a823da7fd34d9; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< ed3cc4218070d6b98bf5fb456dccae424fd38c4f; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< 088873af13590ebde10de2ade847f57a05ec61c6; \>= b7c9400cbc48c3713190b3bce4e0c87e924e4104, \< de74d8fd10291763d97b218f09adcc7513c975e4; Linux 6.1.

### Is there a fix for CVE-2026-72072?

Yes. Fixed in Linux 218cc15a4c907659ad4b0e68c535c61594311205, Linux 4a5073b7b30243658f58b2d2d35a823da7fd34d9, Linux 088873af13590ebde10de2ade847f57a05ec61c6. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-72072?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/b1a4d0c568bbb52c7c04f4fce3c097dae89ed6cb>
- other: <https://git.kernel.org/stable/c/218cc15a4c907659ad4b0e68c535c61594311205>
- other: <https://git.kernel.org/stable/c/4a5073b7b30243658f58b2d2d35a823da7fd34d9>
- other: <https://git.kernel.org/stable/c/ed3cc4218070d6b98bf5fb456dccae424fd38c4f>
- other: <https://git.kernel.org/stable/c/088873af13590ebde10de2ade847f57a05ec61c6>
- other: <https://git.kernel.org/stable/c/de74d8fd10291763d97b218f09adcc7513c975e4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-72072>

HTML: <https://flawdb.com/CVE-2026-72072> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-72072>
