{"id":41312,"date":"2026-10-19T00:33:10","date_gmt":"2026-10-18T16:33:10","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98840"},"modified":"2026-10-19T00:33:10","modified_gmt":"2026-10-18T16:33:10","slug":"cve-2026-98840","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98840","title":{"rendered":"CVE-2026-98840 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nvc_screen: reload vc"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>vc_screen: reload vc pointer before if (ret) in vcs_write() to avoid UAF<\/p>\n<p>The reload of &#8216;vc&#8217; added by commit 8fb9ea65c9d1 (&#8220;vc_screen: reload load<br \/>\nof struct vc_data pointer in vcs_write() to avoid UAF&#8221;) sits after the<br \/>\n&#8216;if (ret)&#8217; block, so the copy-failure break path exits the loop without<br \/>\nreloading vc. If the vc was kfree()&#8217;d via vc_port_destruct during the<br \/>\nunlocked copy_from_user() window, the post-loop<br \/>\n&#8216;if (written &amp;&amp; vc) vcs_scr_updated(vc)&#8217; is reached with a stale<br \/>\nnon-NULL vc. The &#8216;&amp;&amp; vc&#8217; guard from commit a287620312dc (&#8220;vc_screen:<br \/>\nfix null-ptr-deref in vcs_notifier() during concurrent vcs_write&#8221;) only<br \/>\nhandles the NULL case, not this stale-non-NULL case; vcs_notifier() then<br \/>\nreads param-&gt;vc-&gt;vc_num from freed memory:<\/p>\n<p>  BUG: KASAN: slab-use-after-free in vcs_notifier+0x7c\/0xd0<br \/>\n  Read of size 2 at addr ffff888007149190<br \/>\n  Call Trace:<br \/>\n   vcs_notifier+0x7c\/0xd0<br \/>\n   atomic_notifier_call_chain+0x70\/0xa0<br \/>\n   vcs_scr_updated+0x77\/0xa0<br \/>\n   vcs_write+0x71b\/0x7e0<br \/>\n  Allocated by task: vc_allocate -&gt; con_install -&gt; tty_open<br \/>\n  Freed by task: kfree  vc_port_destruct)<\/p>\n<p>Move the reload to immediately after console_lock(), before &#8216;if (ret)&#8217;,<br \/>\nso every break path below passes a fresh vc to the post-loop<br \/>\nvcs_scr_updated().<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>vc_screen: reload vc pointer before if (ret) in vcs_write() to avoid UAF<\/p>\n<p>The reload of &#8216;vc&#8217; added by commit 8fb9ea65c9d1 (&#8220;vc_scre<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-41312","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/41312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}