Skip to content
Fencer Vulns
medium 5.5

CVE-2022-50369 json

drm/vkms: Fix null-ptr-deref in vkms_release()

published 2025-09-17 13 mo ago modified 2026-06-17 4 mo ago also EUVD-2022-55629

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

Summary

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

drm/vkms: Fix null-ptr-deref in vkms_release()

A null-ptr-deref is triggered when it tries to destroy the workqueue in vkms->output.composer_workq in vkms_release().

KASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f] CPU: 5 PID: 17193 Comm: modprobe Not tainted 6.0.0-11331-gd465bff130bf #24 RIP: 0010:destroy_workqueue+0x2f/0x710 ... Call Trace: <TASK> ? vkms_config_debugfs_init+0x50/0x50 [vkms] __devm_drm_dev_alloc+0x15a/0x1c0 [drm] vkms_init+0x245/0x1000 [vkms] do_one_initcall+0xd0/0x4f0 do_init_module+0x1a4/0x680 load_module+0x6249/0x7110 __do_sys_finit_module+0x140/0x200 do_syscall_64+0x35/0x80 entry_SYSCALL_64_after_hwframe+0x46/0xb0

The reason is that an OOM happened which triggers the destroy of the workqueue, however, the workqueue is alloced in the later process, thus a null-ptr-deref happened. A simple call graph is shown as below:

vkms_init() vkms_create() devm_drm_dev_alloc() __devm_drm_dev_alloc() devm_drm_dev_init() devm_add_action_or_reset() devm_add_action() # an error happened devm_drm_dev_init_release() drm_dev_put() kref_put() drm_dev_release() vkms_release() destroy_workqueue() # null-ptr-deref happened vkms_modeset_init() vkms_output_init() vkms_crtc_init() # where the workqueue get allocated

Fix this by checking if composer_workq is NULL before passing it to the destroy_workqueue() in vkms_release().

Patch / fix

  • Linux Linux 5.10.173, 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-50369

  • 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-50369

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-50369 updated cvss 4.4

kernel: drm/vkms: Fix null-ptr-deref in vkms_release()

  • 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
9 mo ago

Exploit prediction

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

CVSS scores

assigned by version score vector
CISA ADP 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CNA 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
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.