<?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>Thu, 01 Oct 2026 05:22:52 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-53399 — nfsd: release layout stid on setlease failure</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-53399</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: release layout stid on setlease failure&lt;/p&gt;
&lt;p&gt;nfs4_alloc_stid() publishes the new stid into cl-&amp;gt;cl_stateids via
idr_alloc_cyclic() under cl_lock before returning to
nfsd4_alloc_layout_stateid(). When nfsd4_layout_setlease() then
fails, the error path frees the layout stateid directly with
kmem_cache_free() without ever calling idr_remove(), leaving the
IDR slot pointing at freed slab memory. Any subsequent IDR walker
(states_show, client teardown) dereferences the dangling pointer.&lt;/p&gt;
&lt;p&gt;The correct teardown for an IDR-published stid is nfs4_put_stid(),
which removes the IDR slot under cl_lock, dispatches sc_free
(nfsd4_free_layout_stateid) to release ls-&amp;gt;ls_file via
nfsd4_close_layout(), and drops the nfs4_file reference in its
tail.&lt;/p&gt;
&lt;p&gt;A second issue blocks that switch: nfsd4_free_layout_stateid()
unconditionally inspects ls-&amp;gt;ls_fence_work via
delayed_work_pending() under ls_lock, but
INIT_DELAYED_WORK(&amp;amp;ls-&amp;gt;ls_fence_work, ...) currently runs only
after the setlease call. On the setlease-failure path the
destructor would touch an uninitialized delayed_work.&lt;/p&gt;
&lt;p&gt;nfsd4_alloc_layout_stateid()
      nfs4_alloc_stid()           /* idr_alloc_cyclic under cl_lock */
      nfsd4_layout_setlease()     /* fails */
        nfs4_put_stid()
          nfsd4_free_layout_stateid()
            delayed_work_pending(&amp;amp;ls-&amp;gt;ls_fence_work)  /* needs INIT */
            nfsd4_close_layout()  /* nfsd_file_put(ls-&amp;gt;ls_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: release layout stid on setlease failure&lt;/p&gt;
&lt;p&gt;nfs4_alloc_stid() publishes the new stid into cl-&amp;gt;cl_stateids via
idr_alloc_cyclic() under cl_lock before returning to
nfsd4_alloc_layout_stateid(). When nfsd4_layout_setlease() then
fails, the error path frees the layout stateid directly with
kmem_cache_free() without ever calling idr_remove(), leaving the
IDR slot pointing at freed slab memory. Any subsequent IDR walker
(states_show, client teardown) dereferences the dangling pointer.&lt;/p&gt;
&lt;p&gt;The correct teardown for an IDR-published stid is nfs4_put_stid(),
which removes the IDR slot under cl_lock, dispatches sc_free
(nfsd4_free_layout_stateid) to release ls-&amp;gt;ls_file via
nfsd4_close_layout(), and drops the nfs4_file reference in its
tail.&lt;/p&gt;
&lt;p&gt;A second issue blocks that switch: nfsd4_free_layout_stateid()
unconditionally inspects ls-&amp;gt;ls_fence_work via
delayed_work_pending() under ls_lock, but
INIT_DELAYED_WORK(&amp;amp;ls-&amp;gt;ls_fence_work, ...) currently runs only
after the setlease call. On the setlease-failure path the
destructor would touch an uninitialized delayed_work.&lt;/p&gt;
&lt;p&gt;nfsd4_alloc_layout_stateid()
      nfs4_alloc_stid()           /* idr_alloc_cyclic under cl_lock */
      nfsd4_layout_setlease()     /* fails */
        nfs4_put_stid()
          nfsd4_free_layout_stateid()
            delayed_work_pending(&amp;amp;ls-&amp;gt;ls_fence_work)  /* needs INIT */
            nfsd4_close_layout()  /* nfsd_file_put(ls-&amp;gt;ls_file) */…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-53399</guid>
    </item>
  </channel>
</rss>
