LiveActive security incident?Get immediate response
CVE Record

CVE-2026-23209: macvlan: fix error recovery in macvlan_common_newlink()

In the Linux kernel, the following vulnerability has been resolved: macvlan: fix error recovery in macvlan_common_newlink() valis provided a nice repro to crash the kernel: ip link add p1 type veth peer p2 ip link set address 00:00:00:00:00:20 dev p1 ip link set up dev p1 ip link set up dev p2 ip link add mv0 link p2 type macvlan mode source ip link add invalid% link p2 type macvlan mode source macaddr add 00:00:00:00:00:20 ping -c1 -I p1 1.2.3.4 He also gave a very detailed analysis: <quote valis> The issue is triggered when a new macvlan link is created with MACVLAN_MODE_SOURCE mode and MACVLAN_MACADDR_ADD (or MACVLAN_MACADDR_SET) parameter, lower device already has a macvlan port and register_netdevice() called from macvlan_common_newlink() fails (e.g. because of the invalid link name). In this case macvlan_hash_add_source is called from macvlan_change_sources() / macvlan_common_newlink(): This adds a reference to vlan to the port's vlan_source_hash using macvlan_source_entry. vlan is a pointer to the priv data of the link that is being created. When register_netdevice() fails, the error is returned from macvlan_newlink() to rtnl_newlink_create(): if (ops->newlink) err = ops->newlink(dev, &params, extack); else err = register_netdevice(dev); if (err < 0) { free_netdev(dev); goto out; } and free_netdev() is called, causing a kvfree() on the struct net_device that is still referenced in the source entry attached to the lower device's macvlan port. Now all packets sent on the macvlan port with a matching source mac address will trigger a use-after-free in macvlan_forward_source(). </quote valis> With all that, my fix is to make sure we call macvlan_flush_sources() regardless of @create value whenever "goto destroy_macvlan_port;" path is taken. Many thanks to valis for following up on this issue.

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

A flaw in Linux macvlan error handling can leave freed kernel memory referenced after a macvlan link-creation failure. Subsequent matching network traffic may trigger memory corruption or a kernel crash. Exploitation requires local access and relevant networking privileges, but successful abuse could compromise confidentiality, integrity, and availability.

Executive priority

Prioritize internet-facing, multi-tenant, container, and shared Linux environments where less-trusted users can administer virtual networking. The flaw is not remotely exploitable by itself, but its potential impact spans kernel compromise and service interruption. Patch promptly after vendor validation; accelerate treatment where macvlan is exposed to untrusted workloads.

Technical view

During creation of a MACVLAN_MODE_SOURCE interface, source entries may be added before register_netdevice() fails. The device is then freed without removing those entries, producing a use-after-free in macvlan_forward_source() when traffic matches the configured source MAC address. The published fix flushes source entries on the affected cleanup path.

Likely exposure

Exposure is limited to affected Linux kernels where a local actor can create or configure macvlan links and induce the relevant registration failure. Systems using containers, network namespaces, or macvlan networking warrant attention. The bundle does not provide reliable distribution-package mappings, so operators must confirm exposure with their Linux vendor.

Exploitation context

The CVSS score is 7.8 with local, low-privilege attack characteristics and no user interaction. A kernel-crash reproducer and detailed root-cause analysis are public. The bundle marks this CVE as absent from KEV and provides no evidence of active exploitation in the wild.

Researcher notes

The failure sequence is well documented: source-hash insertion succeeds, device registration fails, free_netdev() releases the device, and the lower port retains a stale reference. Matching traffic later dereferences it. Exact affected and fixed distribution builds are not established by the bundle; validate using vendor backport information rather than kernel version numbers alone.

Mitigation direction

  • Install a vendor-supported kernel containing the referenced macvlan fix.
  • Check distribution security guidance for corrected package versions and reboot requirements.
  • Restrict untrusted users and workloads from creating or configuring macvlan interfaces.
  • Reduce macvlan source-mode use until affected systems are updated.

Validation and detection

  • Inventory running kernel and distribution package versions across Linux systems.
  • Compare kernel builds with vendor advisories or the referenced stable fixes.
  • Identify hosts, containers, or namespaces using macvlan source mode.
  • After remediation, confirm the corrected kernel is running following any required reboot.
  • Review kernel logs for unexplained crashes or macvlan-related memory faults.
Prepared
Confidence
medium
Sources
9

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2026-23209 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
3Timeline events
1ADP providers
8Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9Linux

Vulnerability scoring details

Base CVSS 3.1 score

7.8High
CVSS 3.1 vector shape for CVE-2026-23209Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinuxaa5fd0fb77486b8a6764ead8627baa14790e4280, aa5fd0fb77486b8a6764ead8627baa14790e4280, aa5fd0fb77486b8a6764ead8627baa14790e4280, aa5fd0fb77486b8a6764ead8627baa14790e4280, aa5fd0fb77486b8a6764ead8627baa14790e4280, aa5fd0fb77486b8a6764ead8627baa14790e4280, aa5fd0fb77486b8a6764ead8627baa14790e4280unaffected
LinuxLinux4.9, 0, 5.10.250, 5.15.200, 6.1.163, 6.6.124, 6.12.70, 6.18.10, 6.19affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.