{
  "threat_severity" : "Moderate",
  "public_date" : "2024-11-05T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: nvme-pci: fix race condition between reset and nvme_dev_disable()",
    "id" : "2323910",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2323910"
  },
  "cvss3" : {
    "cvss3_base_score" : "4.7",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H",
    "status" : "draft"
  },
  "cwe" : "CWE-362",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\nnvme-pci: fix race condition between reset and nvme_dev_disable()\nnvme_dev_disable() modifies the dev->online_queues field, therefore\nnvme_pci_update_nr_queues() should avoid racing against it, otherwise\nwe could end up passing invalid values to blk_mq_update_nr_hw_queues().\nWARNING: CPU: 39 PID: 61303 at drivers/pci/msi/api.c:347\npci_irq_get_affinity+0x187/0x210\nWorkqueue: nvme-reset-wq nvme_reset_work [nvme]\nRIP: 0010:pci_irq_get_affinity+0x187/0x210\nCall Trace:\n<TASK>\n? blk_mq_pci_map_queues+0x87/0x3c0\n? pci_irq_get_affinity+0x187/0x210\nblk_mq_pci_map_queues+0x87/0x3c0\nnvme_pci_map_queues+0x189/0x460 [nvme]\nblk_mq_update_nr_hw_queues+0x2a/0x40\nnvme_reset_work+0x1be/0x2a0 [nvme]\nFix the bug by locking the shutdown_lock mutex before using\ndev->online_queues. Give up if nvme_dev_disable() is running or if\nit has been executed already." ],
  "package_state" : [ {
    "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" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Will not fix",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Will not fix",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Will not fix",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Will not fix",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2024-50135\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-50135\nhttps://lore.kernel.org/linux-cve-announce/2024110559-CVE-2024-50135-d177@gregkh/T" ],
  "name" : "CVE-2024-50135",
  "csaw" : false
}