CVE-2022-50269
Linux Kernel vulnerability analysis and mitigation

Overview

A memory leak vulnerability was discovered in the Linux kernel's drm/vkms module, identified as CVE-2022-50269. The issue occurs when the vkms module installation fails, specifically in the vkms_init() function. The vulnerability was disclosed on September 15, 2025, affecting the Linux kernel's Virtual Kernel Mode Setting (VKMS) driver (NVD).

Technical details

The vulnerability stems from the vkmsinit() function not properly checking the return value of vkmscreate(). When vkmscreate() fails, the config allocated at the beginning of vkmsinit() is leaked. The technical flow shows that config is allocated using kmalloc(), but if vkms_create() fails, the function returns without freeing the allocated memory, resulting in a memory leak. This was confirmed by a backtrace showing the leak occurring in the modprobe process (RedHat).

Impact

The vulnerability results in a memory leak of 16 bytes when the VKMS module installation fails. While the immediate impact is relatively small, repeated failures could lead to cumulative memory leaks in the system. According to Red Hat's assessment, the vulnerability has been assigned a CVSS v3.1 base score of 5.5, indicating a moderate severity level (RedHat).

Mitigation and workarounds

The issue has been fixed by implementing a proper check for the return value of vkms_create() and adding code to free the config if an error occurs. Red Hat has marked this for deferred fixes in Red Hat Enterprise Linux 8 and 9 (RedHat).

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-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-riscv
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-azure-5.4
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-debug-uki-virt-addons
NoYesDec 09, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 12, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • rtla
NoYesDec 09, 2025

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