<?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>Fri, 02 Oct 2026 08:50:54 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-21921 — net: ethtool: netlink: Allow NULL nlattrs when getting a phy_device</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-21921</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;net: ethtool: netlink: Allow NULL nlattrs when getting a phy_device&lt;/p&gt;
&lt;p&gt;ethnl_req_get_phydev() is used to lookup a phy_device, in the case an
ethtool netlink command targets a specific phydev within a netdev&amp;#39;s
topology.&lt;/p&gt;
&lt;p&gt;It takes as a parameter a const struct nlattr *header that&amp;#39;s used for
error handling :&lt;/p&gt;
&lt;p&gt;if (!phydev) {
               NL_SET_ERR_MSG_ATTR(extack, header,
                                   &amp;#34;no phy matching phyindex&amp;#34;);
               return ERR_PTR(-ENODEV);
       }&lt;/p&gt;
&lt;p&gt;In the notify path after a -&amp;gt;set operation however, there&amp;#39;s no request
attributes available.&lt;/p&gt;
&lt;p&gt;The typical callsite for the above function looks like:&lt;/p&gt;
&lt;p&gt;phydev = ethnl_req_get_phydev(req_base, tb[ETHTOOL_A_XXX_HEADER],
				      info-&amp;gt;extack);&lt;/p&gt;
&lt;p&gt;So, when tb is NULL (such as in the ethnl notify path), we have a nice
crash.&lt;/p&gt;
&lt;p&gt;It turns out that there&amp;#39;s only the PLCA command that is in that case, as
the other phydev-specific commands don&amp;#39;t have a notification.&lt;/p&gt;
&lt;p&gt;This commit fixes the crash by passing the cmd index and the nlattr
array separately, allowing NULL-checking it directly inside the helper.&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;net: ethtool: netlink: Allow NULL nlattrs when getting a phy_device&lt;/p&gt;
&lt;p&gt;ethnl_req_get_phydev() is used to lookup a phy_device, in the case an
ethtool netlink command targets a specific phydev within a netdev&amp;#39;s
topology.&lt;/p&gt;
&lt;p&gt;It takes as a parameter a const struct nlattr *header that&amp;#39;s used for
error handling :&lt;/p&gt;
&lt;p&gt;if (!phydev) {
               NL_SET_ERR_MSG_ATTR(extack, header,
                                   &amp;#34;no phy matching phyindex&amp;#34;);
               return ERR_PTR(-ENODEV);
       }&lt;/p&gt;
&lt;p&gt;In the notify path after a -&amp;gt;set operation however, there&amp;#39;s no request
attributes available.&lt;/p&gt;
&lt;p&gt;The typical callsite for the above function looks like:&lt;/p&gt;
&lt;p&gt;phydev = ethnl_req_get_phydev(req_base, tb[ETHTOOL_A_XXX_HEADER],
				      info-&amp;gt;extack);&lt;/p&gt;
&lt;p&gt;So, when tb is NULL (such as in the ethnl notify path), we have a nice
crash.&lt;/p&gt;
&lt;p&gt;It turns out that there&amp;#39;s only the PLCA command that is in that case, as
the other phydev-specific commands don&amp;#39;t have a notification.&lt;/p&gt;
&lt;p&gt;This commit fixes the crash by passing the cmd index and the nlattr
array separately, allowing NULL-checking it directly inside the helper.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-21921</guid>
    </item>
  </channel>
</rss>
