Description
In the Linux kernel, the following vulnerability has been resolved:

vc_screen: fix null-ptr-deref in vcs_notifier() during concurrent vcs_write

A KASAN null-ptr-deref was observed in vcs_notifier():

BUG: KASAN: null-ptr-deref in vcs_notifier+0x98/0x130
Read of size 2 at addr qmp_cmd_name: qmp_capabilities, arguments: {}

The issue is a race condition in vcs_write(). When the console_lock is
temporarily dropped (to copy data from userspace), the vc_data pointer
obtained from vcs_vc() may become stale. After re-acquiring the lock,
vcs_vc() is called again to re-validate the pointer. If the vc has been
deallocated in the meantime, vcs_vc() returns NULL, and the while loop
breaks (with written > 0). However, after the loop, vcs_scr_updated(vc)
is still called with the now-NULL vc pointer, leading to a null pointer
dereference in the notifier chain (vcs_notifier dereferences param->vc).

Fix this by adding a NULL check for vc before calling vcs_scr_updated().
Published: 2026-07-19
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel the vc_screen subsystem has a race condition in vcs_write that can lead to a null pointer dereference in vcs_notifier. The bug is triggered when the console lock is temporarily dropped to copy data from userspace. If the virtual console (vc) is deallocated while the lock is released, a subsequent call to vcs_vc() returns NULL. The code then calls vcs_scr_updated() passing the stale pointer, and the notifier chain dereferences it, causing a KASAN error and a kernel panic. The resulting crash denies system availability but does not give an attacker code execution or remote access. The weakness is a classic NULL‑pointer dereference (CWE‑476).

Affected Systems

The vulnerability affects all Linux kernel builds that include the vc_screen module and have not yet incorporated the patch that adds a NULL check before calling vcs_scr_updated(). The patch is present in kernel releases after the commit referenced in the references list; any kernel older than that commit is potentially vulnerable. Because the affected code is part of the core kernel, the issue is not limited to a specific distribution or architecture.

Risk and Exploitability

The CVSS score of 5.5 indicates medium severity. The EPSS score of less than 1% shows a very low likelihood of exploitation. The race condition requires that an attacker has the ability to perform concurrent console writes, which implies local or privileged access. No public exploits are known, and the bug does not provide a remote payload. However, if exploited in a critical environment, it can take systems offline. The vulnerability is not listed in CISA's KEV catalog.

Generated by OpenCVE AI on July 30, 2026 at 22:30 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the NULL check fix for vcs_notifier.
  • If an immediate kernel upgrade cannot be performed, patch the source, recompile the affected module, and load the updated module to mitigate the race condition.
  • Limit console write privileges to trusted users or enforce that only root can modify console output, reducing the chance to trigger the race.
  • After applying the patch or restricting access, reboot the system to ensure no stale console pointers remain in memory.

Generated by OpenCVE AI on July 30, 2026 at 22:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4700-1 linux-6.1 security update
Debian DLA Debian DLA DLA-4717-1 linux security update
History

Tue, 21 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Sun, 19 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: vc_screen: fix null-ptr-deref in vcs_notifier() during concurrent vcs_write A KASAN null-ptr-deref was observed in vcs_notifier(): BUG: KASAN: null-ptr-deref in vcs_notifier+0x98/0x130 Read of size 2 at addr qmp_cmd_name: qmp_capabilities, arguments: {} The issue is a race condition in vcs_write(). When the console_lock is temporarily dropped (to copy data from userspace), the vc_data pointer obtained from vcs_vc() may become stale. After re-acquiring the lock, vcs_vc() is called again to re-validate the pointer. If the vc has been deallocated in the meantime, vcs_vc() returns NULL, and the while loop breaks (with written > 0). However, after the loop, vcs_scr_updated(vc) is still called with the now-NULL vc pointer, leading to a null pointer dereference in the notifier chain (vcs_notifier dereferences param->vc). Fix this by adding a NULL check for vc before calling vcs_scr_updated().
Title vc_screen: fix null-ptr-deref in vcs_notifier() during concurrent vcs_write
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-19T11:59:32.732Z

Reserved: 2026-06-09T07:44:35.401Z

Link: CVE-2026-53385

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Low

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-53385 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T22:45:03Z

Weaknesses