<?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://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-04T19:59:31.039346+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" 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://db.gcve.eu/vuln/cve-2026-139215</id>
    <title>CVE-2026-139215 — nsproxy: Fix cred leak in the error path of prepare_nsset()</title>
    <updated>2026-12-04T19:59:31.042940+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>nsproxy: Fix cred leak in the error path of prepare_nsset()</p>
<p>A task that calls setns() with CLONE_NEWUSER together with CLONE_NEWNS
and at least one more namespace flag leaks a struct cred (and the
user_namespace, ucounts and group_info references it holds) whenever the
call fails at the fs_struct copy.  On a kernel with CONFIG_USER_NS the
leak is one cred per failed setns(); under memory pressure, or driven by
a fault-injecting attacker, it accumulates and pins user namespaces that
can then never be freed.</p>
<p>prepare_nsset() sets nsset-&gt;flags only on the success path:</p>
<p>if (flags &amp; CLONE_NEWUSER)
		nsset-&gt;cred = prepare_creds();
	...
	} else if (flags &amp; CLONE_NEWNS) {
		nsset-&gt;fs = copy_fs_struct(me-&gt;fs);
		if (!nsset-&gt;fs)
			goto out;	/* flags still 0 here */
	}
	nsset-&gt;flags = flags;
	return 0;
out:
	put_nsset(nsset);</p>
<p>put_nsset() decides what to release from nsset-&gt;flags:</p>
<p>if (flags &amp; CLONE_NEWUSER)
		put_cred(nsset_cred(nsset));</p>
<p>On the copy_fs_struct() failure arm prepare_creds() has already
allocated the cred, but nsset-&gt;flags is still the zero from the caller's
"struct nsset nsset = {}", so put_nsset() does not see CLONE_NEWUSER and
never drops it.  The caller (__do_sys_setns) returns the error without
touching nsset, so the cred is lost.</p>
<p>Set nsset-&gt;flags at the start of prepare_nsset(), before anything can
fail, so every error exit through put_nsset() releases what was taken.
commit_nsset(), which…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-139215"/>
  </entry>
</feed>
