cve.bz

CVE-2026-23209 linux linux kernel: Use After Free

7.8 highEPSS 0.2%Fix available

High (7.8) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 7th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-06-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-23209 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-23209?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-23209?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-23209 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-23209

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-23209](https://cve.bz/cve/badge/CVE-2026-23209.svg)](https://cve.bz/cve/CVE-2026-23209)

HTML:

<a href="https://cve.bz/cve/CVE-2026-23209"><img src="https://cve.bz/cve/badge/CVE-2026-23209.svg" alt="CVE-2026-23209"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux4.9 and later

Fixed in

ProductRelease lineFixed in
Linux5.105.10.250
Linux5.155.15.200
Linux6.16.1.163
Linux6.66.6.124
Linux6.126.12.70
Linux6.186.18.10
Linuxlater releases6.19

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux5.10.251-1DLA-4498-1
Debian11linux-6.16.1.164-1~deb11u1DLA-4499-1
Debian12linux6.1.164-1DEBIAN-CVE-2026-23209 DSA-6163-1
Debian13linux6.12.73-1DEBIAN-CVE-2026-23209 DSA-6141-1
Debian14linux6.18.10-1DEBIAN-CVE-2026-23209
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2026-23209
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2026-23209
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2026-23209
Ubuntu22.04:LTSlinux5.15.0-176.186UBUNTU-CVE-2026-23209 USN-8180-1
Ubuntu22.04:LTSlinux-aws5.15.0-1105.112UBUNTU-CVE-2026-23209 USN-8180-1
Ubuntu22.04:LTSlinux-aws-6.86.8.0-1052.55~22.04.1UBUNTU-CVE-2026-23209 USN-8179-1
Ubuntu22.04:LTSlinux-azure5.15.0-1110.119UBUNTU-CVE-2026-23209 USN-8180-3
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1059.65~22.04.1UBUNTU-CVE-2026-23209 USN-8440-1
Ubuntu22.04:LTSlinux-azure-fde5.15.0-1114.123UBUNTU-CVE-2026-23209
Ubuntu22.04:LTSlinux-azure-fde-6.86.8.0-1058.65~22.04.1UBUNTU-CVE-2026-23209
Ubuntu22.04:LTSlinux-gcp5.15.0-1105.114UBUNTU-CVE-2026-23209 USN-8180-1
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1054.57~22.04.1UBUNTU-CVE-2026-23209 USN-8179-4
138 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.115.1.el8_10RHSA-2026:6037
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.115.1.el8_10RHSA-2026:6037
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.115.1.rt7.456.el8_10RHSA-2026:6036
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.115.1.rt7.456.el8_10RHSA-2026:6036
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-611.45.1.el9_7RHSA-2026:6153
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-611.45.1.el9_7RHSA-2026:6153
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-611.45.1.el9_7RHSA-2026:6153
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-611.45.1.el9_7RHSA-2026:6153
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-64k, kernel-rt-core and 35 more0:5.14.0-611.45.1.el9_7RHSA-2026:6153
Red Hatenterprise_linux:10.1rv, perf, rtla and 87 more0:6.12.0-124.49.1.el10_1RHSA-2026:6632
Red Hatenterprise_linux_eus:10.0rv, perf, rtla and 88 more0:6.12.0-55.66.1.el10_0RHSA-2026:6692
Red Hatrhel_aus:8.2::baseosperf, kernel, bpftool and 21 more0:4.18.0-193.193.1.el8_2RHSA-2026:6953
27 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.197.1SUSE-SU-2026:0984-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6kernel-default6.4.0-150600.23.112.1SUSE-SU-2026:2195-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6kernel-default6.4.0-150600.23.92.1SUSE-SU-2026:1041-1
SUSELinux Enterprise High Availability Extension 15 SP7, Linux Enterprise Live Patching 15 SP7, Linux Enterprise Module for Legacy 15 SP7 and 1 morekernel-default6.4.0-150700.53.34.1SUSE-SU-2026:1081-1
SUSELinux Enterprise High Availability Extension 15 SP7, Linux Enterprise Live Patching 15 SP7, Linux Enterprise Module for Legacy 15 SP7 and 1 morekernel-default6.4.0-150700.53.55.1SUSE-SU-2026:2238-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150400.24.197.1SUSE-SU-2026:0984-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 3 morekernel-default-base5.14.21-150400.24.197.1.150400.24.100.1SUSE-SU-2026:0984-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150500.55.141.1SUSE-SU-2026:1003-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 morekernel-default-base5.14.21-150500.55.141.1.150500.6.69.2SUSE-SU-2026:1003-1
SUSELinux Enterprise Live Patching 12 SP5kernel-default4.12.14-122.296.1SUSE-SU-2026:1078-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_6715-2.1SUSE-SU-2026:1221-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_6813-2.1SUSE-SU-2026:1285-1
94 more for SUSE in the JSON and on SUSE's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability can be exploited by a local user with CAP_NET_ADMIN to trigger use-after-free by creating a macvlan with an invalid name. The detailed reproducer and analysis were provided by a security researcher. This could potentially be used for privilege escalation via controlled memory corruption.

Red Hat's mitigation

To mitigate this issue, prevent module macvlan from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernel-0:6.12.0-124.49.1.el10_1Fixed 2026-04-06RHSA-2026:6632
Red Hat Enterprise Linux 10.0 Extended Update Supportkernel-0:6.12.0-55.66.1.el10_0Fixed 2026-04-06RHSA-2026:6692
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.115.1.rt7.456.el8_10Fixed 2026-03-30RHSA-2026:6036
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.115.1.el8_10Fixed 2026-03-30RHSA-2026:6037
Red Hat Enterprise Linux 8.2 Advanced Update Supportkernel-0:4.18.0-193.193.1.el8_2Fixed 2026-04-08RHSA-2026:6953
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportkernel-0:4.18.0-305.188.1.el8_4Fixed 2026-04-08RHSA-2026:7003
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onkernel-0:4.18.0-305.188.1.el8_4Fixed 2026-04-08RHSA-2026:7003
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportkernel-0:4.18.0-372.187.1.el8_6Fixed 2026-04-08RHSA-2026:6961
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicekernel-0:4.18.0-372.187.1.el8_6Fixed 2026-04-08RHSA-2026:6961
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionskernel-0:4.18.0-372.187.1.el8_6Fixed 2026-04-08RHSA-2026:6961
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicekernel-0:4.18.0-477.135.1.el8_8Fixed 2026-04-08RHSA-2026:6954
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionskernel-0:4.18.0-477.135.1.el8_8Fixed 2026-04-08RHSA-2026:6954
Red Hat Enterprise Linux 9kernel-0:5.14.0-611.45.1.el9_7Fixed 2026-03-30RHSA-2026:6153
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionskernel-0:5.14.0-70.173.1.el9_0Fixed 2026-04-08RHSA-2026:7013
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionskernel-rt-0:5.14.0-70.173.1.rt21.245.el9_0Fixed 2026-04-08RHSA-2026:7100
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionskernel-0:5.14.0-284.166.1.el9_2Fixed 2026-04-22RHSA-2026:9644
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 9kernel-rtAffected
3 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-23209.

References

Check your stackJSON