<?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>Tue, 29 Sep 2026 22:42:54 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-52909 — nfsd: fix handling of cached open files in nfsd4_open codepath</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2023-52909</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;nfsd: fix handling of cached open files in nfsd4_open codepath&lt;/p&gt;
&lt;p&gt;Commit fb70bf124b05 (&amp;#34;NFSD: Instantiate a struct file when creating a
regular NFSv4 file&amp;#34;) added the ability to cache an open fd over a
compound. There are a couple of problems with the way this currently
works:&lt;/p&gt;
&lt;p&gt;It&amp;#39;s racy, as a newly-created nfsd_file can end up with its PENDING bit
cleared while the nf is hashed, and the nf_file pointer is still zeroed
out. Other tasks can find it in this state and they expect to see a
valid nf_file, and can oops if nf_file is NULL.&lt;/p&gt;
&lt;p&gt;Also, there is no guarantee that we&amp;#39;ll end up creating a new nfsd_file
if one is already in the hash. If an extant entry is in the hash with a
valid nf_file, nfs4_get_vfs_file will clobber its nf_file pointer with
the value of op_file and the old nf_file will leak.&lt;/p&gt;
&lt;p&gt;Fix both issues by making a new nfsd_file_acquirei_opened variant that
takes an optional file pointer. If one is present when this is called,
we&amp;#39;ll take a new reference to it instead of trying to open the file. If
the nfsd_file already has a valid nf_file, we&amp;#39;ll just ignore the
optional file and pass the nfsd_file back as-is.&lt;/p&gt;
&lt;p&gt;Also rework the tracepoints a bit to allow for an &amp;#34;opened&amp;#34; variant and
don&amp;#39;t try to avoid counting acquisitions in the case where we already
have a cached open file.&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;nfsd: fix handling of cached open files in nfsd4_open codepath&lt;/p&gt;
&lt;p&gt;Commit fb70bf124b05 (&amp;#34;NFSD: Instantiate a struct file when creating a
regular NFSv4 file&amp;#34;) added the ability to cache an open fd over a
compound. There are a couple of problems with the way this currently
works:&lt;/p&gt;
&lt;p&gt;It&amp;#39;s racy, as a newly-created nfsd_file can end up with its PENDING bit
cleared while the nf is hashed, and the nf_file pointer is still zeroed
out. Other tasks can find it in this state and they expect to see a
valid nf_file, and can oops if nf_file is NULL.&lt;/p&gt;
&lt;p&gt;Also, there is no guarantee that we&amp;#39;ll end up creating a new nfsd_file
if one is already in the hash. If an extant entry is in the hash with a
valid nf_file, nfs4_get_vfs_file will clobber its nf_file pointer with
the value of op_file and the old nf_file will leak.&lt;/p&gt;
&lt;p&gt;Fix both issues by making a new nfsd_file_acquirei_opened variant that
takes an optional file pointer. If one is present when this is called,
we&amp;#39;ll take a new reference to it instead of trying to open the file. If
the nfsd_file already has a valid nf_file, we&amp;#39;ll just ignore the
optional file and pass the nfsd_file back as-is.&lt;/p&gt;
&lt;p&gt;Also rework the tracepoints a bit to allow for an &amp;#34;opened&amp;#34; variant and
don&amp;#39;t try to avoid counting acquisitions in the case where we already
have a cached open file.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2023-52909</guid>
    </item>
  </channel>
</rss>
