<?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://db.gcve.eu</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>Fri, 04 Dec 2026 19:21:04 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139129 — xattr: always invoke cap_convert_nscap() for security.capability writes</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139129</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;xattr: always invoke cap_convert_nscap() for security.capability writes&lt;/p&gt;
&lt;p&gt;Commit 8db6c34f1dbc (&amp;#34;Introduce v3 namespaced file capabilities&amp;#34;) changed
cap_inode_setxattr() to return 0 unconditionally for XATTR_NAME_CAPS
(&amp;#34;security.capability&amp;#34;) and moved capability validation into
cap_convert_nscap(), but placed the call inside the &amp;#34;if (size)&amp;#34; block in
setxattr(). Commit 7c03e2cda4a5 (&amp;#34;vfs: move cap_convert_nscap() call into
vfs_setxattr()&amp;#34;) preserved that &amp;#34;size &amp;amp;&amp;amp;&amp;#34; condition in vfs_setxattr():&lt;/p&gt;
&lt;p&gt;if (size &amp;amp;&amp;amp; strcmp(name, XATTR_NAME_CAPS) == 0) {
		error = cap_convert_nscap(idmap, dentry, &amp;amp;value, size);
		...
	}&lt;/p&gt;
&lt;p&gt;For security.* extended attributes, xattr_permission() skips
inode_permission(MAY_WRITE) and leaves permission checks to the security
module, while cap_inode_setxattr() returns 0 for XATTR_NAME_CAPS assuming
cap_convert_nscap() has already validated the write. Because
__vfs_setxattr() treats size == 0 as an empty attribute write (setting
value = &amp;#34;&amp;#34;) rather than a removal, calling setxattr(2) on
&amp;#34;security.capability&amp;#34; with size == 0 bypasses cap_convert_nscap() and
allows an unprivileged caller without CAP_SETFCAP or write permission on
the target inode to write a 0-byte security.capability xattr (or
overwrite an existing one).&lt;/p&gt;
&lt;p&gt;When that binary is subsequently executed, get_vfs_caps_from_disk() reads
the 0-byte security.capability xattr and fails the
size &amp;lt; sizeof(magic_etc) check with -EINVAL, causing ex…&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;xattr: always invoke cap_convert_nscap() for security.capability writes&lt;/p&gt;
&lt;p&gt;Commit 8db6c34f1dbc (&amp;#34;Introduce v3 namespaced file capabilities&amp;#34;) changed
cap_inode_setxattr() to return 0 unconditionally for XATTR_NAME_CAPS
(&amp;#34;security.capability&amp;#34;) and moved capability validation into
cap_convert_nscap(), but placed the call inside the &amp;#34;if (size)&amp;#34; block in
setxattr(). Commit 7c03e2cda4a5 (&amp;#34;vfs: move cap_convert_nscap() call into
vfs_setxattr()&amp;#34;) preserved that &amp;#34;size &amp;amp;&amp;amp;&amp;#34; condition in vfs_setxattr():&lt;/p&gt;
&lt;p&gt;if (size &amp;amp;&amp;amp; strcmp(name, XATTR_NAME_CAPS) == 0) {
		error = cap_convert_nscap(idmap, dentry, &amp;amp;value, size);
		...
	}&lt;/p&gt;
&lt;p&gt;For security.* extended attributes, xattr_permission() skips
inode_permission(MAY_WRITE) and leaves permission checks to the security
module, while cap_inode_setxattr() returns 0 for XATTR_NAME_CAPS assuming
cap_convert_nscap() has already validated the write. Because
__vfs_setxattr() treats size == 0 as an empty attribute write (setting
value = &amp;#34;&amp;#34;) rather than a removal, calling setxattr(2) on
&amp;#34;security.capability&amp;#34; with size == 0 bypasses cap_convert_nscap() and
allows an unprivileged caller without CAP_SETFCAP or write permission on
the target inode to write a 0-byte security.capability xattr (or
overwrite an existing one).&lt;/p&gt;
&lt;p&gt;When that binary is subsequently executed, get_vfs_caps_from_disk() reads
the 0-byte security.capability xattr and fails the
size &amp;lt; sizeof(magic_etc) check with -EINVAL, causing ex…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139129</guid>
    </item>
  </channel>
</rss>
