<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-02T08:50:54.160702+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2025-21921</id>
    <title>CVE-2025-21921 — net: ethtool: netlink: Allow NULL nlattrs when getting a phy_device</title>
    <updated>2026-10-02T08:50:54.185717+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>net: ethtool: netlink: Allow NULL nlattrs when getting a phy_device</p>
<p>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's
topology.</p>
<p>It takes as a parameter a const struct nlattr *header that's used for
error handling :</p>
<p>if (!phydev) {
               NL_SET_ERR_MSG_ATTR(extack, header,
                                   "no phy matching phyindex");
               return ERR_PTR(-ENODEV);
       }</p>
<p>In the notify path after a -&gt;set operation however, there's no request
attributes available.</p>
<p>The typical callsite for the above function looks like:</p>
<p>phydev = ethnl_req_get_phydev(req_base, tb[ETHTOOL_A_XXX_HEADER],
				      info-&gt;extack);</p>
<p>So, when tb is NULL (such as in the ethnl notify path), we have a nice
crash.</p>
<p>It turns out that there's only the PLCA command that is in that case, as
the other phydev-specific commands don't have a notification.</p>
<p>This commit fixes the crash by passing the cmd index and the nlattr
array separately, allowing NULL-checking it directly inside the helper.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2025-21921"/>
  </entry>
</feed>
