{
  "threat_severity" : "Moderate",
  "public_date" : "2025-09-17T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: drm/vkms: Fix null-ptr-deref in vkms_release()",
    "id" : "2396112",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2396112"
  },
  "cvss3" : {
    "cvss3_base_score" : "4.4",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-476",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\ndrm/vkms: Fix null-ptr-deref in vkms_release()\nA null-ptr-deref is triggered when it tries to destroy the workqueue in\nvkms->output.composer_workq in vkms_release().\nKASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f]\nCPU: 5 PID: 17193 Comm: modprobe Not tainted 6.0.0-11331-gd465bff130bf #24\nRIP: 0010:destroy_workqueue+0x2f/0x710\n...\nCall Trace:\n<TASK>\n? vkms_config_debugfs_init+0x50/0x50 [vkms]\n__devm_drm_dev_alloc+0x15a/0x1c0 [drm]\nvkms_init+0x245/0x1000 [vkms]\ndo_one_initcall+0xd0/0x4f0\ndo_init_module+0x1a4/0x680\nload_module+0x6249/0x7110\n__do_sys_finit_module+0x140/0x200\ndo_syscall_64+0x35/0x80\nentry_SYSCALL_64_after_hwframe+0x46/0xb0\nThe reason is that an OOM happened which triggers the destroy of the\nworkqueue, however, the workqueue is alloced in the later process,\nthus a null-ptr-deref happened. A simple call graph is shown as below:\nvkms_init()\nvkms_create()\ndevm_drm_dev_alloc()\n__devm_drm_dev_alloc()\ndevm_drm_dev_init()\ndevm_add_action_or_reset()\ndevm_add_action() # an error happened\ndevm_drm_dev_init_release()\ndrm_dev_put()\nkref_put()\ndrm_dev_release()\nvkms_release()\ndestroy_workqueue() # null-ptr-deref happened\nvkms_modeset_init()\nvkms_output_init()\nvkms_crtc_init() # where the workqueue get allocated\nFix this by checking if composer_workq is NULL before passing it to\nthe destroy_workqueue() in vkms_release()." ],
  "statement" : "A NULL pointer dereference could occur in vkms_release() when destroy_workqueue() is called on an uninitialized composer_workq. This happens if an error (e.g., OOM) occurs before the workqueue is allocated during driver initialization, causing the cleanup path to access a NULL pointer.",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2025-08-18T00:00:00Z",
    "advisory" : "RHSA-2025:13961",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8::nfv",
    "package" : "kernel-rt-0:4.18.0-553.70.1.rt7.411.el8_10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2023-11-14T00:00:00Z",
    "advisory" : "RHSA-2023:7077",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8",
    "package" : "kernel-0:4.18.0-513.5.1.el8_9"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2025-08-18T00:00:00Z",
    "advisory" : "RHSA-2025:13960",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8",
    "package" : "kernel-0:4.18.0-553.70.1.el8_10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2023-11-07T00:00:00Z",
    "advisory" : "RHSA-2023:6583",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-362.8.1.el9_3"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2023-11-07T00:00:00Z",
    "advisory" : "RHSA-2023:6583",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-362.8.1.el9_3"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions",
    "release_date" : "2025-09-11T00:00:00Z",
    "advisory" : "RHSA-2025:15670",
    "cpe" : "cpe:/a:redhat:rhel_e4s:9.0",
    "package" : "kernel-0:5.14.0-70.146.1.el9_0"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions",
    "release_date" : "2025-09-10T00:00:00Z",
    "advisory" : "RHSA-2025:15658",
    "cpe" : "cpe:/a:redhat:rhel_e4s:9.0::nfv",
    "package" : "kernel-rt-0:5.14.0-70.146.1.rt21.218.el9_0"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2022-50369\nhttps://nvd.nist.gov/vuln/detail/CVE-2022-50369\nhttps://lore.kernel.org/linux-cve-announce/2025091716-CVE-2022-50369-bc92@gregkh/T" ],
  "name" : "CVE-2022-50369",
  "csaw" : false
}