<?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>Sun, 04 Oct 2026 22:42:21 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-43472 — unshare: fix unshare_fs() handling</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-43472</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;unshare: fix unshare_fs() handling&lt;/p&gt;
&lt;p&gt;There&amp;#39;s an unpleasant corner case in unshare(2), when we have a
CLONE_NEWNS in flags and current-&amp;gt;fs hadn&amp;#39;t been shared at all; in that
case copy_mnt_ns() gets passed current-&amp;gt;fs instead of a private copy,
which causes interesting warts in proof of correctness]&lt;/p&gt;
&lt;p&gt;&amp;gt; I guess if private means fs-&amp;gt;users == 1, the condition could still be true.&lt;/p&gt;
&lt;p&gt;Unfortunately, it&amp;#39;s worse than just a convoluted proof of correctness.
Consider the case when we have CLONE_NEWCGROUP in addition to CLONE_NEWNS
(and current-&amp;gt;fs-&amp;gt;users == 1).&lt;/p&gt;
&lt;p&gt;We pass current-&amp;gt;fs to copy_mnt_ns(), all right.  Suppose it succeeds and
flips current-&amp;gt;fs-&amp;gt;{pwd,root} to corresponding locations in the new namespace.
Now we proceed to copy_cgroup_ns(), which fails (e.g. with -ENOMEM).
We call put_mnt_ns() on the namespace created by copy_mnt_ns(), it&amp;#39;s
destroyed and its mount tree is dissolved, but...  current-&amp;gt;fs-&amp;gt;root and
current-&amp;gt;fs-&amp;gt;pwd are both left pointing to now detached mounts.&lt;/p&gt;
&lt;p&gt;They are pinning those, so it&amp;#39;s not a UAF, but it leaves the calling
process with unshare(2) failing with -ENOMEM _and_ leaving it with
pwd and root on detached isolated mounts.  The last part is clearly a bug.&lt;/p&gt;
&lt;p&gt;There is other fun related to that mess (races with pivot_root(), including
the one between pivot_root() and fork(), of all things), but this one
is easy to isolate and fix - treat CLONE_NEWNS as &amp;#34;allocate a new
fs_struct even if it h…&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;unshare: fix unshare_fs() handling&lt;/p&gt;
&lt;p&gt;There&amp;#39;s an unpleasant corner case in unshare(2), when we have a
CLONE_NEWNS in flags and current-&amp;gt;fs hadn&amp;#39;t been shared at all; in that
case copy_mnt_ns() gets passed current-&amp;gt;fs instead of a private copy,
which causes interesting warts in proof of correctness]&lt;/p&gt;
&lt;p&gt;&amp;gt; I guess if private means fs-&amp;gt;users == 1, the condition could still be true.&lt;/p&gt;
&lt;p&gt;Unfortunately, it&amp;#39;s worse than just a convoluted proof of correctness.
Consider the case when we have CLONE_NEWCGROUP in addition to CLONE_NEWNS
(and current-&amp;gt;fs-&amp;gt;users == 1).&lt;/p&gt;
&lt;p&gt;We pass current-&amp;gt;fs to copy_mnt_ns(), all right.  Suppose it succeeds and
flips current-&amp;gt;fs-&amp;gt;{pwd,root} to corresponding locations in the new namespace.
Now we proceed to copy_cgroup_ns(), which fails (e.g. with -ENOMEM).
We call put_mnt_ns() on the namespace created by copy_mnt_ns(), it&amp;#39;s
destroyed and its mount tree is dissolved, but...  current-&amp;gt;fs-&amp;gt;root and
current-&amp;gt;fs-&amp;gt;pwd are both left pointing to now detached mounts.&lt;/p&gt;
&lt;p&gt;They are pinning those, so it&amp;#39;s not a UAF, but it leaves the calling
process with unshare(2) failing with -ENOMEM _and_ leaving it with
pwd and root on detached isolated mounts.  The last part is clearly a bug.&lt;/p&gt;
&lt;p&gt;There is other fun related to that mess (races with pivot_root(), including
the one between pivot_root() and fork(), of all things), but this one
is easy to isolate and fix - treat CLONE_NEWNS as &amp;#34;allocate a new
fs_struct even if it h…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-43472</guid>
    </item>
  </channel>
</rss>
