CVE-2026-23209
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2026-23209 is a use-after-free (UAF) vulnerability in the Linux kernel's macvlan driver, specifically in the error recovery path of macvlan_common_newlink(). It was published on February 14, 2026, and affects Linux kernel versions from 4.9.1 through 6.18.x (prior to their respective patched releases), as well as 6.19 release candidates. The flaw allows a local attacker with low privileges to crash the kernel or potentially escalate privileges. It carries a CVSS v3.1 base score of 7.8 (High) (Feedly).

Technical details

The root cause is a use-after-free condition (CWE-416) in macvlan_common_newlink(). When a new macvlan link is created with MACVLAN_MODE_SOURCE mode and MACVLAN_MACADDR_ADD or MACVLAN_MACADDR_SET parameters, macvlan_hash_add_source() is called via macvlan_change_sources(), which adds a reference to the new vlan structure into the lower device's vlan_source_hash. If register_netdevice() subsequently fails (e.g., due to an invalid link name), free_netdev(dev) is called, freeing the vlan structure. However, the dangling pointer in vlan_source_hash is not cleaned up, leaving a stale reference. When subsequent packets arrive on the macvlan port with a matching source MAC address, macvlan_forward_source() dereferences the freed memory, triggering the UAF. Exploitation requires local access and low-level privileges; no user interaction is needed (Feedly, Kernel Patches).

Impact

Successful exploitation can result in kernel crashes (denial of service), information disclosure from freed kernel memory, or potential local privilege escalation to root. The vulnerability affects the entire system's stability and integrity, as the kernel memory corruption occurs in a networking subsystem path. An attacker with local access could leverage this to gain elevated privileges and potentially pivot to further compromise the host or any containers sharing the kernel (Feedly).

Exploitation steps

  1. Gain local access: Obtain a shell on the target Linux system with at least low-level user privileges (e.g., a regular user account or container escape scenario).
  2. Set up prerequisite network interfaces: Create a veth pair and bring both interfaces up:
    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
  3. Create a valid macvlan in SOURCE mode: Establish a baseline macvlan port on the lower device:
    ip link add mv0 link p2 type macvlan mode source
  4. Trigger the vulnerable code path: Attempt to create a second macvlan with an invalid name (causing register_netdevice() to fail) while simultaneously adding a source MAC address:
    ip link add invalid% link p2 type macvlan mode source macaddr add 00:00:00:00:00:20
    This causes macvlan_hash_add_source() to insert a reference into vlan_source_hash, after which register_netdevice() fails and free_netdev() frees the vlan structure, leaving a dangling pointer.
  5. Trigger the use-after-free: Send a packet with the matching source MAC address through the interface to cause macvlan_forward_source() to dereference the freed memory:
    ping -c1 -I p1 1.2.3.4
    This results in a kernel crash (or, with a crafted heap layout, potential privilege escalation) (Feedly).

Indicators of compromise

  • Logs: Kernel oops or panic messages in /var/log/kern.log or dmesg referencing macvlan_forward_source() or macvlan_common_newlink() with use-after-free or null pointer dereference traces.
  • Logs: System log entries showing failed ip link add commands with invalid interface names alongside macvlan SOURCE mode and macaddr parameters.
  • Process: Unusual invocations of ip link add with type macvlan mode source macaddr add parameters by non-root users or unexpected processes.
  • Network: Creation of multiple short-lived macvlan interfaces on the same lower device, particularly with invalid names, visible via ip link show or audit logs.
  • File System: Kernel crash dump files (e.g., /var/crash/) generated around the time of suspicious macvlan interface creation activity.

Mitigation and workarounds

Apply the patched kernel versions released by the upstream Linux stable team and downstream distributors:

  • Kernel 4.9.1–5.10.x: Update to 5.10.250 or later
  • Kernel 5.11–5.15.x: Update to 5.15.200 or later
  • Kernel 5.16–6.1.x: Update to 6.1.163 or later
  • Kernel 6.2–6.6.x: Update to 6.6.124 or later
  • Kernel 6.7–6.12.x: Update to 6.12.70 or later
  • Kernel 6.13–6.18.x: Update to 6.18.10 or later

Patches are available in the stable kernel repository (Kernel Patches). Downstream advisories have been issued by Red Hat (Red Hat Errata), Debian, Ubuntu (Ubuntu USN-8162-1), SUSE, Oracle Linux, AlmaLinux, and Rocky Linux. As a temporary workaround, restrict unprivileged user access to macvlan network device creation using appropriate access controls, SELinux/AppArmor policies, or by limiting CAP_NET_ADMIN capabilities (Feedly).

Community reactions

The vulnerability was reported with a detailed analysis by researcher "valis," who provided both a reproduction script and a thorough root cause breakdown that was incorporated into the upstream kernel commit message. Downstream Linux distributions including Red Hat, Debian, Ubuntu, SUSE, Oracle Linux, AlmaLinux, and Rocky Linux have all issued security advisories and updated packages. The vulnerability has been picked up by multiple security news aggregators and scanner vendors (Tenable Nessus, Qualys), reflecting broad industry awareness. No significant social media controversy or high-profile researcher commentary beyond the initial disclosure has been observed (Feedly, Red Hat Errata).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management