Skip to content
Fencer Vulns
medium 5.5

CVE-2022-50269 json

drm/vkms: Fix memory leak in vkms_init()

published 2025-09-15 13 mo ago modified 2026-11-05 3 d ago also EUVD-2022-55586

cvss
5.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 5%
public exploits
0
none known

Summary

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

drm/vkms: Fix memory leak in vkms_init()

A memory leak was reported after the vkms module install failed.

unreferenced object 0xffff88810bc28520 (size 16): comm "modprobe", pid 9662, jiffies 4298009455 (age 42.590s) hex dump (first 16 bytes): 01 01 00 64 81 88 ff ff 00 00 dc 0a 81 88 ff ff ...d............ backtrace: [<00000000e7561ff8>] kmalloc_trace+0x27/0x60 [<000000000b1954a0>] 0xffffffffc45200a9 [<00000000abbf1da0>] do_one_initcall+0xd0/0x4f0 [<000000001505ee87>] do_init_module+0x1a4/0x680 [<00000000958079ad>] load_module+0x6249/0x7110 [<00000000117e4696>] __do_sys_finit_module+0x140/0x200 [<00000000f74b12d2>] do_syscall_64+0x35/0x80 [<000000008fc6fcde>] entry_SYSCALL_64_after_hwframe+0x46/0xb0

The reason is that the vkms_init() returns without checking the return value of vkms_create(), and if the vkms_create() failed, the config allocated at the beginning of vkms_init() is leaked.

vkms_init() config = kmalloc(...) # config allocated ... return vkms_create() # vkms_create failed and config is leaked

Fix this problem by checking return value of vkms_create() and free the config if error happened.

Patch / fix

  • Linux Linux 5.15.99, 6.1.16, 6.2.3, 6.3
  • linux Debian 14, Debian 13, Debian 12 6.1.20-1

debian advisories DEBIAN-CVE-2022-50269

  • linux Ubuntu 22.04 LTS 5.15.0-75.82
  • linux-aws Ubuntu 22.04 LTS 5.15.0-1038.43
  • linux-gcp Ubuntu 22.04 LTS 5.15.0-1036.44
  • linux-gke Ubuntu 22.04 LTS 5.15.0-1036.41
  • linux-ibm Ubuntu 22.04 LTS 5.15.0-1032.35
  • linux-kvm Ubuntu 22.04 LTS 5.15.0-1035.40
  • linux-azure Ubuntu 22.04 LTS 5.15.0-1040.47
  • linux-gkeop Ubuntu 22.04 LTS 5.15.0-1022.27

ubuntu advisories UBUNTU-CVE-2022-50269

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel-rt RHEL 8 4.18.0-553.70.1.rt7.411.el8_10
  • kernel-rt-kvm RHEL 8 4.18.0-553.70.1.rt7.411.el8_10
  • kernel-rt-core RHEL 8 4.18.0-553.70.1.rt7.411.el8_10
  • kernel-rt-modules RHEL 8 4.18.0-553.70.1.rt7.411.el8_10
  • kernel-rt-debug-kvm RHEL 8 4.18.0-553.70.1.rt7.411.el8_10
  • kernel-rt-debug-core RHEL 8 4.18.0-553.70.1.rt7.411.el8_10
  • kernel-rt-debug-modules RHEL 8 4.18.0-553.70.1.rt7.411.el8_10
  • kernel-rt-modules-extra RHEL 8 4.18.0-553.70.1.rt7.411.el8_10

red hat advisories RHSA-2025:15670RHSA-2025:15658RHSA-2025:13961RHSA-2025:13960RHSA-2023:7077RHSA-2023:6583

  • kernel-rt SLE Micro 5.5 5.14.21-150500.13.109.1
  • kernel-source-rt SLE Micro 5.5 5.14.21-150500.13.109.1
  • kernel-rt SLE Micro 5.4, SLE Micro 5.3 5.14.21-150400.15.133.1
  • kernel-source-rt SLE Micro 5.4, SLE Micro 5.3 5.14.21-150400.15.133.1
  • kernel-64kb SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS, SLE High Performance Computing 15 SP4-ESPOS 5.14.21-150400.24.179.1
  • kernel-syms SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +3 more 5.14.21-150400.24.179.1
  • kernel-source SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +3 more 5.14.21-150400.24.179.1
  • kernel-default SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Micro 5.4 +7 more 5.14.21-150400.24.179.1

suse advisories SUSE-SU-2025:3761-1SUSE-SU-2025:3716-1SUSE-SU-2025:03628-1SUSE-SU-2025:03615-1

  • kernel-rt AlmaLinux 8 4.18.0-553.70.1.rt7.411.el8_10
  • kernel-rt-core AlmaLinux 8 4.18.0-553.70.1.rt7.411.el8_10
  • kernel-rt-modules AlmaLinux 8 4.18.0-553.70.1.rt7.411.el8_10
  • kernel-rt-debug-core AlmaLinux 8 4.18.0-553.70.1.rt7.411.el8_10
  • kernel-rt-debug-modules AlmaLinux 8 4.18.0-553.70.1.rt7.411.el8_10
  • kernel-rt-modules-extra AlmaLinux 8 4.18.0-553.70.1.rt7.411.el8_10
  • kernel-rt-debug-modules-extra AlmaLinux 8 4.18.0-553.70.1.rt7.411.el8_10

almalinux advisories ALSA-2025:13961

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-50269 updated cvss 5.5

kernel: drm/vkms: Fix memory leak in vkms_init()

  • Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more
    affected: no fix available “Fix deferred”
  • Red Hat CodeReady Linux Builder (v. 8) kernel-debuginfo-common-x86_64 4.18.0-513.5.1.el8_9, kernel-debuginfo-common-aarch64 4.18.0-513.5.1.el8_9, kernel-debuginfo-common-ppc64le 4.18.0-513.5.1.el8_9
    fixed: vendor fix RHSA-2023:7077
  • Red Hat Enterprise Linux AppStream E4S (v.9.0) perf 5.14.0-70.146.1.el9_0, kernel-devel-matched 5.14.0-70.146.1.el9_0, kernel-debug-devel-matched 5.14.0-70.146.1.el9_0, kernel-debuginfo-common-s390x 5.14.0-70.146.1.el9_0, kernel-zfcpdump-devel-matched 5.14.0-70.146.1.el9_0, kernel-debuginfo-common-x86_64 5.14.0-70.146.1.el9_0, +2 more
    fixed: vendor fix RHSA-2025:15670
  • Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-513.5.1.el8_9, kernel 4.18.0-513.5.1.el8_9, perf 4.18.0-553.70.1.el8_10, bpftool 4.18.0-513.5.1.el8_9, kernel 4.18.0-553.70.1.el8_10, bpftool 4.18.0-553.70.1.el8_10, +36 more
    fixed: vendor fix RHSA-2025:13960
  • Red Hat Enterprise Linux BaseOS E4S (v.9.0) kernel 5.14.0-70.146.1.el9_0, bpftool 5.14.0-70.146.1.el9_0, kernel-core 5.14.0-70.146.1.el9_0, kernel-tools 5.14.0-70.146.1.el9_0, python3-perf 5.14.0-70.146.1.el9_0, kernel-modules 5.14.0-70.146.1.el9_0, +14 more
    fixed: vendor fix RHSA-2025:15670
  • Red Hat Enterprise Linux CRB (v. 8) kernel-debuginfo-common-x86_64 4.18.0-553.70.1.el8_10, kernel-debuginfo-common-aarch64 4.18.0-553.70.1.el8_10, kernel-debuginfo-common-ppc64le 4.18.0-553.70.1.el8_10
    fixed: vendor fix RHSA-2025:13960
  • Red Hat Enterprise Linux NFV (v. 8) kernel-rt 4.18.0-553.70.1.rt7.411.el8_10, kernel-rt-kvm 4.18.0-553.70.1.rt7.411.el8_10, kernel-rt-core 4.18.0-553.70.1.rt7.411.el8_10, kernel-rt-modules 4.18.0-553.70.1.rt7.411.el8_10, kernel-rt-debug-kvm 4.18.0-553.70.1.rt7.411.el8_10, kernel-rt-debug-core 4.18.0-553.70.1.rt7.411.el8_10, +4 more
    fixed: vendor fix RHSA-2025:13961
  • Red Hat Enterprise Linux NFV E4S (v.9.0) kernel-rt 5.14.0-70.146.1.rt21.218.el9_0, kernel-rt-kvm 5.14.0-70.146.1.rt21.218.el9_0, kernel-rt-core 5.14.0-70.146.1.rt21.218.el9_0, kernel-rt-modules 5.14.0-70.146.1.rt21.218.el9_0, kernel-rt-debug-kvm 5.14.0-70.146.1.rt21.218.el9_0, kernel-rt-debug-core 5.14.0-70.146.1.rt21.218.el9_0, +4 more Red Hat Enterprise Linux Real Time E4S (v.9.0) kernel-rt 5.14.0-70.146.1.rt21.218.el9_0, kernel-rt-core 5.14.0-70.146.1.rt21.218.el9_0, kernel-rt-modules 5.14.0-70.146.1.rt21.218.el9_0, kernel-rt-debug-core 5.14.0-70.146.1.rt21.218.el9_0, kernel-rt-debug-modules 5.14.0-70.146.1.rt21.218.el9_0, kernel-rt-modules-extra 5.14.0-70.146.1.rt21.218.el9_0, +2 more
    fixed: vendor fix RHSA-2025:15658
show 2 more
  • Red Hat Enterprise Linux RT (v. 8) kernel-rt 4.18.0-553.70.1.rt7.411.el8_10, kernel-rt-core 4.18.0-553.70.1.rt7.411.el8_10, kernel-rt-modules 4.18.0-553.70.1.rt7.411.el8_10, kernel-rt-debug-core 4.18.0-553.70.1.rt7.411.el8_10, kernel-rt-debug-modules 4.18.0-553.70.1.rt7.411.el8_10, kernel-rt-modules-extra 4.18.0-553.70.1.rt7.411.el8_10, +2 more
    fixed: vendor fix RHSA-2025:13961
  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 10 kernel
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
3 d ago

Exploit prediction

0.16% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

  • Linux Linux

Classification

Weakness
  • CWE-401 Missing Release of Memory after Effective Lifetime
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.