Skip to main content

In the Linux kernel, the following vulnerability has been resolved: vc_screen: reload vc pointer before if (ret) in vcs_write() to avoid UAF The… (CVE-2026-98840)

0
Medium
Published: 10/18/2026 (10/18/2026, 18:32:05 UTC)
Source: GCVE Database

Description

A use-after-free (UAF) vulnerability in the Linux kernel's vc_screen component was resolved by reloading the vc pointer before checking the return value in the vcs_write() function. The issue occurred because the vc pointer could become stale and non-NULL after being freed, leading to a read from freed memory in vcs_notifier(). This could cause kernel memory corruption and crashes.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 22:16:55 UTC

Technical Analysis

The vulnerability in the Linux kernel's vc_screen subsystem involves a use-after-free condition in the vcs_write() function. The reload of the vc pointer was originally placed after an 'if (ret)' block, which allowed a stale non-NULL vc pointer to be used if the vc was freed during an unlocked copy_from_user() window. This stale pointer was then dereferenced in vcs_notifier(), causing a slab-use-after-free error detected by KASAN. The fix moves the reload of the vc pointer to immediately after console_lock(), before the 'if (ret)' check, ensuring that all code paths use a fresh vc pointer and preventing use-after-free.

Potential Impact

This vulnerability can lead to use-after-free memory access in the kernel, potentially causing kernel crashes or memory corruption. There is no indication of remote exploitability or privilege escalation in the provided data. The impact is limited to kernel stability and memory safety.

Mitigation Recommendations

A fix has been implemented in the Linux kernel by moving the reload of the vc pointer to before the 'if (ret)' check in vcs_write(). Users should update to a Linux kernel version that includes this fix. Patch status is not explicitly confirmed in the provided data; check the vendor or Linux kernel advisory for the exact fixed versions and update accordingly.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-vpw3-5qwq-wxvw
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98840"]

Threat ID: 6ad520a92cdf04f65699389d

Added to database: 10/18/2026, 19:40:25 UTC

Last enriched: 10/18/2026, 22:16:55 UTC

Last updated: 10/18/2026, 22:16:55 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses