<?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>Tue, 03 Nov 2026 09:25:38 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-98719 — KVM: SEV: Nullify "have run CPUs" mask pointer when freeing it</title>
      <link>https://db.gcve.eu/vuln/cve-2026-98719</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;KVM: SEV: Nullify &amp;#34;have run CPUs&amp;#34; mask pointer when freeing it&lt;/p&gt;
&lt;p&gt;Nullify have_run_cpus when freeing the mask, particularly in the error path
of __sev_guest_init(), so that KVM doesn&amp;#39;t have to subtly use sev-&amp;gt;active
to track whether or not the mask has been freed.  As pointed out by Sashiko,
blindly freeing the mask in sev_vm_destroy() results in a double-free if
the mask is freed if __sev_guest_init() fails.&lt;/p&gt;
&lt;p&gt;Throw the logic in a helper as nullifying the pointer is frustratingly
difficult and weird due to have_run_cpus being a single-entry array when
CPUMASK_OFFSTACK=n.  Deliberately don&amp;#39;t use CPUMASK_VAR_NULL, as it&amp;#39;s not
directly assignable when the cpumask is on-stack, e.g. requires using a
local variable and a memcpy(), which is beyond ridiculous.  Furthermore,
while clearing the on-stack bitmask is an unnecessary and arguably unwanted
side effect, KVM absolutely relies on &amp;#39;0&amp;#39; being the &amp;#34;null&amp;#34; value given that
the struct is zero-allocated.&lt;/p&gt;
&lt;p&gt;Opportunistically add an alloc() helper to pair with free(); there are just
enough call sites to make doing so worthwhile.&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;KVM: SEV: Nullify &amp;#34;have run CPUs&amp;#34; mask pointer when freeing it&lt;/p&gt;
&lt;p&gt;Nullify have_run_cpus when freeing the mask, particularly in the error path
of __sev_guest_init(), so that KVM doesn&amp;#39;t have to subtly use sev-&amp;gt;active
to track whether or not the mask has been freed.  As pointed out by Sashiko,
blindly freeing the mask in sev_vm_destroy() results in a double-free if
the mask is freed if __sev_guest_init() fails.&lt;/p&gt;
&lt;p&gt;Throw the logic in a helper as nullifying the pointer is frustratingly
difficult and weird due to have_run_cpus being a single-entry array when
CPUMASK_OFFSTACK=n.  Deliberately don&amp;#39;t use CPUMASK_VAR_NULL, as it&amp;#39;s not
directly assignable when the cpumask is on-stack, e.g. requires using a
local variable and a memcpy(), which is beyond ridiculous.  Furthermore,
while clearing the on-stack bitmask is an unnecessary and arguably unwanted
side effect, KVM absolutely relies on &amp;#39;0&amp;#39; being the &amp;#34;null&amp;#34; value given that
the struct is zero-allocated.&lt;/p&gt;
&lt;p&gt;Opportunistically add an alloc() helper to pair with free(); there are just
enough call sites to make doing so worthwhile.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-98719</guid>
    </item>
  </channel>
</rss>
