{
  "threat_severity" : "Moderate",
  "public_date" : "2025-02-26T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: dm: fix use-after-free in dm_cleanup_zoned_dev()",
    "id" : "2348180",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2348180"
  },
  "cvss3" : {
    "cvss3_base_score" : "6.7",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-416",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\ndm: fix use-after-free in dm_cleanup_zoned_dev()\ndm_cleanup_zoned_dev() uses queue, so it must be called\nbefore blk_cleanup_disk() starts its killing:\nblk_cleanup_disk->blk_cleanup_queue()->kobject_put()->blk_release_queue()->\n->...RCU...->blk_free_queue_rcu()->kmem_cache_free()\nOtherwise, RCU callback may be executed first and\ndm_cleanup_zoned_dev() will touch free'd memory:\nBUG: KASAN: use-after-free in dm_cleanup_zoned_dev+0x33/0xd0\nRead of size 8 at addr ffff88805ac6e430 by task dmsetup/681\nCPU: 4 PID: 681 Comm: dmsetup Not tainted 5.17.0-rc2+ #6\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014\nCall Trace:\n<TASK>\ndump_stack_lvl+0x57/0x7d\nprint_address_description.constprop.0+0x1f/0x150\n? dm_cleanup_zoned_dev+0x33/0xd0\nkasan_report.cold+0x7f/0x11b\n? dm_cleanup_zoned_dev+0x33/0xd0\ndm_cleanup_zoned_dev+0x33/0xd0\n__dm_destroy+0x26a/0x400\n? dm_blk_ioctl+0x230/0x230\n? up_write+0xd8/0x270\ndev_remove+0x156/0x1d0\nctl_ioctl+0x269/0x530\n? table_clear+0x140/0x140\n? lock_release+0xb2/0x750\n? remove_all+0x40/0x40\n? rcu_read_lock_sched_held+0x12/0x70\n? lock_downgrade+0x3c0/0x3c0\n? rcu_read_lock_sched_held+0x12/0x70\ndm_ctl_ioctl+0xa/0x10\n__x64_sys_ioctl+0xb9/0xf0\ndo_syscall_64+0x3b/0x90\nentry_SYSCALL_64_after_hwframe+0x44/0xae\nRIP: 0033:0x7fb6dfa95c27" ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2022-11-15T00:00:00Z",
    "advisory" : "RHSA-2022:8267",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-162.6.1.el9_1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2022-11-15T00:00:00Z",
    "advisory" : "RHSA-2022:8267",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-162.6.1.el9_1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions",
    "release_date" : "2024-11-19T00:00:00Z",
    "advisory" : "RHSA-2024:9942",
    "cpe" : "cpe:/a:redhat:rhel_e4s:9.0",
    "package" : "kernel-0:5.14.0-70.121.1.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 8",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2022-49270\nhttps://nvd.nist.gov/vuln/detail/CVE-2022-49270\nhttps://lore.kernel.org/linux-cve-announce/2025022630-CVE-2022-49270-c331@gregkh/T" ],
  "name" : "CVE-2022-49270",
  "csaw" : false
}