<?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>Mon, 19 Oct 2026 16:40:54 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-98840 — vc_screen: reload vc pointer before if (ret) in vcs_write() to avoid UAF</title>
      <link>https://db.gcve.eu/vuln/cve-2026-98840</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;vc_screen: reload vc pointer before if (ret) in vcs_write() to avoid UAF&lt;/p&gt;
&lt;p&gt;The reload of &amp;#39;vc&amp;#39; added by commit 8fb9ea65c9d1 (&amp;#34;vc_screen: reload load
of struct vc_data pointer in vcs_write() to avoid UAF&amp;#34;) sits after the
&amp;#39;if (ret)&amp;#39; block, so the copy-failure break path exits the loop without
reloading vc. If the vc was kfree()&amp;#39;d via vc_port_destruct during the
unlocked copy_from_user() window, the post-loop
&amp;#39;if (written &amp;amp;&amp;amp; vc) vcs_scr_updated(vc)&amp;#39; is reached with a stale
non-NULL vc. The &amp;#39;&amp;amp;&amp;amp; vc&amp;#39; guard from commit a287620312dc (&amp;#34;vc_screen:
fix null-ptr-deref in vcs_notifier() during concurrent vcs_write&amp;#34;) only
handles the NULL case, not this stale-non-NULL case; vcs_notifier() then
reads param-&amp;gt;vc-&amp;gt;vc_num from freed memory:&lt;/p&gt;
&lt;p&gt;BUG: KASAN: slab-use-after-free in vcs_notifier+0x7c/0xd0
  Read of size 2 at addr ffff888007149190
  Call Trace:
   vcs_notifier+0x7c/0xd0
   atomic_notifier_call_chain+0x70/0xa0
   vcs_scr_updated+0x77/0xa0
   vcs_write+0x71b/0x7e0
  Allocated by task: vc_allocate -&amp;gt; con_install -&amp;gt; tty_open
  Freed by task: kfree &amp;lt;- vt_ioctl (VT_DISALLOCATE -&amp;gt; vc_port_destruct)&lt;/p&gt;
&lt;p&gt;Move the reload to immediately after console_lock(), before &amp;#39;if (ret)&amp;#39;,
so every break path below passes a fresh vc to the post-loop
vcs_scr_updated().&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;vc_screen: reload vc pointer before if (ret) in vcs_write() to avoid UAF&lt;/p&gt;
&lt;p&gt;The reload of &amp;#39;vc&amp;#39; added by commit 8fb9ea65c9d1 (&amp;#34;vc_screen: reload load
of struct vc_data pointer in vcs_write() to avoid UAF&amp;#34;) sits after the
&amp;#39;if (ret)&amp;#39; block, so the copy-failure break path exits the loop without
reloading vc. If the vc was kfree()&amp;#39;d via vc_port_destruct during the
unlocked copy_from_user() window, the post-loop
&amp;#39;if (written &amp;amp;&amp;amp; vc) vcs_scr_updated(vc)&amp;#39; is reached with a stale
non-NULL vc. The &amp;#39;&amp;amp;&amp;amp; vc&amp;#39; guard from commit a287620312dc (&amp;#34;vc_screen:
fix null-ptr-deref in vcs_notifier() during concurrent vcs_write&amp;#34;) only
handles the NULL case, not this stale-non-NULL case; vcs_notifier() then
reads param-&amp;gt;vc-&amp;gt;vc_num from freed memory:&lt;/p&gt;
&lt;p&gt;BUG: KASAN: slab-use-after-free in vcs_notifier+0x7c/0xd0
  Read of size 2 at addr ffff888007149190
  Call Trace:
   vcs_notifier+0x7c/0xd0
   atomic_notifier_call_chain+0x70/0xa0
   vcs_scr_updated+0x77/0xa0
   vcs_write+0x71b/0x7e0
  Allocated by task: vc_allocate -&amp;gt; con_install -&amp;gt; tty_open
  Freed by task: kfree &amp;lt;- vt_ioctl (VT_DISALLOCATE -&amp;gt; vc_port_destruct)&lt;/p&gt;
&lt;p&gt;Move the reload to immediately after console_lock(), before &amp;#39;if (ret)&amp;#39;,
so every break path below passes a fresh vc to the post-loop
vcs_scr_updated().&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-98840</guid>
    </item>
  </channel>
</rss>
