CVE-2020-25656
Linux Kernel vulnerability analysis and mitigation

Overview

A flaw was discovered in the Linux kernel (CVE-2020-25656) where a use-after-free vulnerability was found in the way the console subsystem was using ioctls KDGKBSENT and KDSKBSENT. The vulnerability was discovered in October 2020 and affects Linux kernel versions from 3.4 to 5.9 (LKML Report).

Technical details

The vulnerability stems from a race condition in KDGKBSENT and KDSKBSENT operations. The issue occurs when KDSKBSENT allocates a larger heap buffer to funcbufptr, and KDGKBSENT obtains the allocated heap pointer. Due to KDGKBSENT having no lock, KDSKBSENT can be used again to allocate a larger buffer, causing the old funcbufptr to be freed while still being referenced, resulting in a use-after-free condition (LKML Report). The vulnerability has been assigned a CVSS v3.1 base score of 4.1 (MEDIUM) with vector AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N (NVD).

Impact

The primary impact of this vulnerability is to data confidentiality. A local user could exploit this flaw to gain read access to memory out of bounds. The vulnerability requires local access and high privileges, specifically the CAP_SYS_TTY_CONFIG capability, to be exploited (Redhat Bugzilla).

Exploitability

The vulnerability requires local access and the CAP_SYS_TTY_CONFIG capability to be exploited. For successful exploitation, CONFIG_KASAN (kernel memory debugger) needs to be enabled, which is typically disabled in production systems. Without CONFIG_KASAN, the bug occurs silently without causing a kernel crash (Redhat Bugzilla).

Mitigation and workarounds

The issue was fixed in Linux kernel version 5.10-rc2. A patch was developed that reorders user buffer handling in vt_do_kdgkb_ioctl (LKML Patch). Various Linux distributions have released security updates to address this vulnerability, including Red Hat Enterprise Linux, Debian, and Ubuntu (Debian Advisory).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74583NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2026-74582NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 21, 2026
CVE-2026-74581NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-internal
NoYesAug 21, 2026
CVE-2026-74580NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2025-30156NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel-matched
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management