<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Mon, 28 Sep 2026 07:32:35 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-23209 — macvlan: fix error recovery in macvlan_common_newlink()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-23209</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;macvlan: fix error recovery in macvlan_common_newlink()&lt;/p&gt;
&lt;p&gt;valis provided a nice repro to crash the kernel:&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;ping -c1 -I p1 1.2.3.4&lt;/p&gt;
&lt;p&gt;He also gave a very detailed analysis:&lt;/p&gt;
&lt;p&gt;&amp;lt;quote valis&amp;gt;&lt;/p&gt;
&lt;p&gt;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).&lt;/p&gt;
&lt;p&gt;In this case macvlan_hash_add_source is called from
macvlan_change_sources() / macvlan_common_newlink():&lt;/p&gt;
&lt;p&gt;This adds a reference to vlan to the port&amp;#39;s vlan_source_hash using
macvlan_source_entry.&lt;/p&gt;
&lt;p&gt;vlan is a pointer to the priv data of the link that is being created.&lt;/p&gt;
&lt;p&gt;When register_netdevice() fails, the error is returned from
macvlan_newlink() to rtnl_newlink_create():&lt;/p&gt;
&lt;p&gt;if (ops-&amp;gt;newlink)
                err = ops-&amp;gt;newlink(dev, &amp;amp;params, extack);
        else
                err = register_netdevice(dev);
        if (err &amp;lt; 0) {
                free_netdev(dev);
                goto out;
        }&lt;/p&gt;
&lt;p&gt;and free_netdev() is called, causing a kvfree() on the struct
net_device that…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;macvlan: fix error recovery in macvlan_common_newlink()&lt;/p&gt;
&lt;p&gt;valis provided a nice repro to crash the kernel:&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;ping -c1 -I p1 1.2.3.4&lt;/p&gt;
&lt;p&gt;He also gave a very detailed analysis:&lt;/p&gt;
&lt;p&gt;&amp;lt;quote valis&amp;gt;&lt;/p&gt;
&lt;p&gt;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).&lt;/p&gt;
&lt;p&gt;In this case macvlan_hash_add_source is called from
macvlan_change_sources() / macvlan_common_newlink():&lt;/p&gt;
&lt;p&gt;This adds a reference to vlan to the port&amp;#39;s vlan_source_hash using
macvlan_source_entry.&lt;/p&gt;
&lt;p&gt;vlan is a pointer to the priv data of the link that is being created.&lt;/p&gt;
&lt;p&gt;When register_netdevice() fails, the error is returned from
macvlan_newlink() to rtnl_newlink_create():&lt;/p&gt;
&lt;p&gt;if (ops-&amp;gt;newlink)
                err = ops-&amp;gt;newlink(dev, &amp;amp;params, extack);
        else
                err = register_netdevice(dev);
        if (err &amp;lt; 0) {
                free_netdev(dev);
                goto out;
        }&lt;/p&gt;
&lt;p&gt;and free_netdev() is called, causing a kvfree() on the struct
net_device that…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-23209</guid>
    </item>
  </channel>
</rss>
